simplify unified timed wait code, drop support for newer method
authorRich Felker <dalias@aerifal.cx>
Sun, 7 Aug 2011 15:14:32 +0000 (11:14 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 7 Aug 2011 15:14:32 +0000 (11:14 -0400)
commitb3c08a16c0a085e8de01cdc9de106aaa332d27d5
tree6b3645eb14be5acf87334a158202d4866efda50b
parentb2b95a58b4326c8a8aa87fdf6e8b0f6421dbaf99
simplify unified timed wait code, drop support for newer method

the new absolute-time-based wait kernelside was hard to get right and
basically just code duplication. it could only improve "performance"
when waiting, and even then, the improvement was just slight drop in
cpu usage during a wait.

actually, with vdso clock_gettime, the "old" way will be even faster
than the "new" way if the time has already expired, since it will not
invoke any syscalls. it can determine entirely in userspace that it
needs to return ETIMEDOUT.
src/thread/__timedwait.c