libuv/include/uv-private
Bert Belder ffe2ef06eb 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.
2013-04-18 23:39:16 +02:00
..
stdint-msvc2008.h win: support compilation with Visual Studio 2008 2012-10-23 22:55:25 +02:00
tree.h Rename __unused to UV__UNUSED. 2012-04-03 17:41:50 +02:00
uv-bsd.h stream: use kevent() information before accept() 2013-02-09 00:54:08 +04:00
uv-darwin.h unix, windows: remove ngx-queue.h 2013-03-27 00:09:36 +01:00
uv-linux.h unix, windows: remove ngx-queue.h 2013-03-27 00:09:36 +01:00
uv-sunos.h sunos: fix !defined(PORT_SOURCE_FILE) build 2012-12-28 12:45:47 +01:00
uv-unix.h unix, windows: remove ngx-queue.h 2013-03-27 00:09:36 +01:00
uv-win.h windows: deal with the fact that GetTickCount might lag 2013-04-18 23:39:16 +02:00