David Xu d802aa25d2 Don't check has_waiters twice, inline some small functions.
performance result on my machine:
	mutex     Elapsed: 902115 us; per iteration: 90 ns.
	semaphore Elapsed: 958780 us; per iteration: 95 ns.
2010-01-05 03:39:31 +00:00
..
2010-01-02 09:58:07 +00:00
2009-10-26 17:27:30 +00:00
2009-12-31 01:37:26 +00:00
2010-01-02 09:58:07 +00:00
2010-01-02 09:58:07 +00:00
2010-01-02 09:58:07 +00:00
2010-01-02 09:58:07 +00:00
2010-01-02 09:58:07 +00:00
2010-01-02 09:58:07 +00:00
2009-12-11 14:15:55 +00:00