-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Each IO handle has a home event loop, which created it. When a task wants to use an IO handle, it must first make sure it is on that home event loop. It uses the scheduler handle in the IO handle to send itself there before starting the IO action. Once the IO action completes, the task restores its previous home state. If it is an AnySched task, then it will be executed on the new scheduler. If it has a normal home, then it will return there before executing any more code after the IO action.
- Loading branch information
Showing
4 changed files
with
653 additions
and
660 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.
35e844f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from brson
at anasazi@35e844f
35e844f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging anasazi/rust/homing-io = 35e844f into auto
35e844f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anasazi/rust/homing-io = 35e844f merged ok, testing candidate = 0bc1ca4
35e844f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/1002
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1005
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/111
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/111
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1020
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/111
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/111
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1020
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/111
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/111
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/193
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/1005
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/111
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/111
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/791
35e844f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 0bc1ca4