-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix thread safety for pybind11 loader_life_support #3237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
53b3919
Fix thread safety for pybind11 loader_life_support
laramiel caa974f
Also update the internals version as the internal struct is no longer…
laramiel 9179d60
Add test demonstrating threading works correctly.
laramiel 0c2bf55
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4b7dc7a
Update test to use lifetime-extended references rather than
laramiel fdfff88
Merge branch 'master' of https://github.com/laramiel/pybind11
laramiel d91a4a7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c6720ca
Make loader_life_support members private
laramiel 2c07c0d
Merge branch 'master' of https://github.com/laramiel/pybind11
laramiel 8a1a59f
Update version to dev2
laramiel dfc94f3
Update test to use python threading rather than concurrent.futures
laramiel 4f25e31
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 366f40d
Remove unnecessary env in test
laramiel b5a0538
Remove unnecessary pytest in test
laramiel ffc52a3
Use native C++ thread_local in place of python per-thread data struct…
laramiel dc7df66
clang-format test_thread.cpp
laramiel dd8f264
Add a note about debugging the py::cast() error
laramiel c4c6acb
thread_test.py now propagates exceptions on join() calls.
laramiel 6ad3de6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] d7e3067
remove unused sys / merge
laramiel 638d091
Update include order in test_thread.cpp
laramiel a06f851
Remove spurious whitespace
laramiel 5c58953
Update comment / whitespace.
laramiel 5f66855
Address review comments
laramiel 1237bbe
lint cleanup
laramiel afbc066
Fix test IntStruct constructor.
laramiel fe49b37
Merge branch 'master' of https://github.com/pybind/pybind11
Skylion007 5787104
Add explicit to constructor
Skylion007 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,6 @@ | |
|
|
||
| import pytest | ||
|
|
||
| import env # noqa: F401 | ||
| from pybind11_tests import thread as m | ||
|
|
||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.