Skip to content

make Compiler Send and Sync#122

Merged
antiagainst merged 1 commit intogoogle:mainfrom
kocsis1david:sync-compiler
Apr 14, 2022
Merged

make Compiler Send and Sync#122
antiagainst merged 1 commit intogoogle:mainfrom
kocsis1david:sync-compiler

Conversation

@kocsis1david
Copy link
Copy Markdown
Contributor

@kocsis1david kocsis1david commented Mar 7, 2022

Fixes #113

I'm not 100% sure if this is safe. If not, this PR could be deleted.

It seems that the only reason shaderc::Compiler exists is to call glslang::InitializeProcess and glslang::FinalizeProcess, so it should be Send and Sync.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Mar 7, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

For more information, open the CLA check for this pull request.

Copy link
Copy Markdown
Collaborator

@antiagainst antiagainst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks proper for me. Thanks for updating this!

@antiagainst antiagainst merged commit 1aa3516 into google:main Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can Compiler be Send, even Sync?

2 participants