-
Notifications
You must be signed in to change notification settings - Fork 118
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
Fix thread sanitizer leak when launching Python 3.13 and using from neuron import h, gui. #3243
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3243 +/- ##
==========================================
- Coverage 67.08% 67.08% -0.01%
==========================================
Files 569 569
Lines 111079 111091 +12
==========================================
+ Hits 74520 74525 +5
- Misses 36559 36566 +7 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
✔️ be19ebe -> Azure artifacts URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable, and it seems to fix the thread leak issue, I have only minor comments.
This allows one to temporarily disable the process_events loop using a construct | ||
like: | ||
from neuron import gui | ||
with gui.disabled(): | ||
something_that_would_interact_badly_with_process_events() | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if this is still current, but if so, it should either stay here, or be moved to the docstring of disabled
below. If it's not current, just ignore this comment.
@@ -208,11 +208,20 @@ static int have_opt(const char* arg) { | |||
} | |||
|
|||
void nrnpython_finalize() { | |||
printf("nrnpython_finalize()\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe put behind an #ifndef NDEBUG
, or a comment?
Quality Gate passedIssues Measures |
No description provided.