Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1855)

Unified Diff: runtime/vm/message_queue.h

Issue 8392044: Handle spurious wakeups properly. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/message_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/message_queue.h
===================================================================
--- runtime/vm/message_queue.h (revision 778)
+++ runtime/vm/message_queue.h (working copy)
@@ -48,7 +48,11 @@
void Enqueue(PortMessage* msg);
- // May block if no message is available.
+ // Gets the next message from the message queue, possibly blocking
+ // if no message is available. 'millis' is a timeout in
+ // milliseconds. If 'millis' is 0, then this means to block
+ // indefinitely. May block if no message is available. May return
+ // NULL even if 'millis' is 0 due to spurious wakeups.
PortMessage* Dequeue(int64_t millis);
void Flush(Dart_Port port);
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/message_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698