Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: joyent/libuv
base: 7f8130a21ba8
Choose a base ref
...
head repository: joyent/libuv
compare: ffe2ef06eba7
Choose a head ref
  • 1 commit
  • 4 files changed
  • 1 contributor

Commits on Apr 18, 2013

  1. windows: deal with the fact that GetTickCount might lag

    We use GetQueuedCompletionStatus(Ex) to sleep the thread until the next
    timer expires (provided that no other events happen before that).
    However after waking up from a sleep the GetTickCount() return value may
    not immediately reflect that some time has passed. This happens because
    gqcs can sometimes sleep for periods shorter than the GetTickCount clock
    resulution. This patch changes time tracking so the amount of time
    waited by gqcs is taken into account.
    
    This has the following advantages:
    
    * Excessive loop iterations are avoided.
    * Small timeouts are fired more precisely.
    * The `loop-stop` test that used to be flaky on Windows now passes
      consistently.
    piscisaureus committed Apr 18, 2013
    Copy the full SHA
    ffe2ef0 View commit details
    Browse the repository at this point in the history