davidxu 8ea6a66616 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
..
2009-06-23 14:11:41 +00:00
2009-06-23 14:11:41 +00:00
2009-11-16 14:33:31 +00:00
2009-06-23 14:11:41 +00:00
2009-11-28 11:27:37 +00:00
2009-12-03 19:27:12 +00:00
2009-11-25 04:45:45 +00:00