forked from zeromq/clrzmq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a manual reset event to the Device class called DoneEvent which…
… will be signaled when the recieve loops end. This is useful for when you need to wait in a hosting thread for the device thread to complete, or to check if it's completed in a nice and thread safe manner. Also marked the _run member in Device as volatile so the call to Stop() is garantueed to terminate the thread, as on some architectures (and in some version of the CLR) the _runc heck in RunningLoop could get hoisted if _run was not marked as volatile.
- Loading branch information
Showing
1 changed file
with
14 additions
and
7 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