-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid unnecessarily creating event driver instances in non-D threads.
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.
- Loading branch information
Showing
1 changed file
with
26 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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