Skip to content
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 recursive set bug #141

Merged
merged 2 commits into from
Dec 4, 2023
Merged

Conversation

AlexanderWells-diamond
Copy link
Collaborator

Prevent a deadlock by ensuring the GIL is released when attempting to acquire EPICS record locks.

Closes #119

This fixes a potential deadlock between the GIL and EPICS record lock
Copy link

codecov bot commented Dec 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (906e058) 87.73% compared to head (43bb3dd) 87.73%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #141   +/-   ##
=======================================
  Coverage   87.73%   87.73%           
=======================================
  Files          14       14           
  Lines        1019     1019           
=======================================
  Hits          894      894           
  Misses        125      125           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Dec 1, 2023

Unit Test Results

     15 files  ±  0       15 suites  ±0   27m 57s ⏱️ +9s
   278 tests +  1     262 ✔️ +  1    16 💤 ±0  0 ±0 
4 170 runs  +15  3 575 ✔️ +10  595 💤 +5  0 ±0 

Results for commit 43bb3dd. ± Comparison against base commit 906e058.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@Araneidae Araneidae left a comment

Choose a reason for hiding this comment

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

Looks good to me

Note that this test is most recreatable with cothread==2.19.1, but that
version doesn't support Python3.6, which pythonSoftIOC still declares
support for. So just leave it unpinned and assume users will likely get
that version!
@AlexanderWells-diamond AlexanderWells-diamond merged commit 43bb3dd into master Dec 4, 2023
38 checks passed
@Araneidae Araneidae deleted the fix_recursive_set_bug branch December 13, 2023 06:58
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.

Possible deadlock when record.set called in on_update callback
2 participants