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

Avoid unnecessarily creating event driver instances in non-D threads. #415

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

s-ludwig
Copy link
Member

@s-ludwig s-ludwig commented Oct 3, 2024

Using non-D threads to trigger ManualEvents should work without creating a thread instance of an event driver in the triggering thread. Using an event driver in such a thread leads to possible memory errors (because references to the driver instance are not visible to the GC) and leaks resources (event/socket pair handles) to the GC.

Using non-D threads to trigger ManualEvents should work without creating a thread instance of an event driver in the triggering thread. Using an event driver in such a thread leads to possible memory errors (because references to the driver instance are not visible to the GC) and leaks resources (event/socket pair handles) to the GC.
@s-ludwig s-ludwig requested a review from l-kramer October 3, 2024 11:54
@l-kramer l-kramer merged commit 85a491d into master Oct 3, 2024
13 checks passed
@l-kramer l-kramer deleted the fix_manualevent_in_non_d_threads branch October 3, 2024 14:31
s-ludwig added a commit that referenced this pull request Oct 3, 2024
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.

2 participants