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

Issue 8392044: Handle spurious wakeups properly. (Closed)

Created:
9 years, 1 month ago by turnidge
Modified:
9 years, 1 month ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Søren Gjesse
Visibility:
Public.

Description

Handle spurious wakeups properly. Committed: https://code.google.com/p/dart/source/detail?r=781

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -5 lines) Patch
M runtime/vm/isolate.cc View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M runtime/vm/message_queue.h View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M runtime/vm/message_queue.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
turnidge
I may change this later to try to hide the spurious wakeup from the caller. ...
9 years, 1 month ago (2011-10-26 17:40:07 UTC) #1
siva
LGTM. We should also document the DeQueue method in message_queue.h clearly stating that this method ...
9 years, 1 month ago (2011-10-26 18:36:27 UTC) #2
turnidge
9 years, 1 month ago (2011-10-26 20:46:59 UTC) #3
Updated the docs for the function.  Added an assert for negative timeouts.

On 2011/10/26 18:36:27, asiva wrote:
> LGTM.
> 
> We should also document the DeQueue method in message_queue.h clearly stating
> that this method will return a NULL message when a timeout or spurious wake
ups
> happen and it is the responsibility of the caller to deal with NULL.
> 
> We also need to check for validity of the millis argument to DeQueue (for
> instance if -1 is passed I think we get some weird behaviour).

Powered by Google App Engine
This is Rietveld 408576698