David Xu cc583082f4 Use version 2 of semaphore provided by kernel umtx code, now if there is
no waiters, we still increase and decrease count in user mode without
entering kernel, once there is a waiter, sem_post will enter kernel to
increase count and wake thread up, this is atomicy and allow us to
gracefully destroy semaphore after sem_wait returned.
2012-03-21 07:12:52 +00:00
..
2012-03-06 03:30:09 +00:00
2012-01-09 06:36:28 +00:00
2012-03-14 15:30:59 +00:00
2012-03-19 05:08:09 +00:00
2011-07-10 06:57:00 +00:00
2012-01-03 07:14:01 +00:00