-
Notifications
You must be signed in to change notification settings - Fork 652
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EventLoop.assertInEventLoop and preconditionInEventLoop (#644)
Motivation: Dispatch can only precondition that code is run from a certain queue, it can't return if code is running on a certain queue. To support that this introduces new EventLoop.assertInEventLoop and EventLoop.preconditionInEventLoop methods instead of assert(eventLoop.inEventLoop). Modifications: add EventLoop.assertInEventLoop and EventLoop.preconditionInEventLoop Result: better support for Network.framework in NIOTS
- Loading branch information
Showing
8 changed files
with
125 additions
and
108 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
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
Oops, something went wrong.