]> git.pond.sub.org Git - empserver/commit
Fix race condition in empth_sleep() for Windows
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 14 Jun 2009 16:48:38 +0000 (18:48 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 19 Jul 2009 18:11:52 +0000 (14:11 -0400)
commit3ce0cea94c8cc31073de67ed83cbf3a07d436c29
treeea7b3465ba3b68d85cfb7916d7b6e6a228d75687
parent9ee9eb3234c3eb4ac160507e1f8db2a6be4c72a5
Fix race condition in empth_sleep() for Windows

Calculation of sleep duration tried to protect against integer
underflow, but the protection was racy.  Rewrite the whole thing.
src/lib/empthread/ntthread.c