Files
semi-libc/src/thread
Rich Felker 07e62953c7 retry on cas failures in sem_trywait
this seems counter-intuitive since sem_trywait is supposed to just try
once, not wait for the semaphore. however, the retry loop is not a
wait. instead, it's to handle the case where the value changes due to
a simultaneous post or wait from another thread while the semaphore
value remains positive. in such a case, it's absolutely wrong for
sem_trywait to fail with EAGAIN because the semaphore is not busy.
2012-07-24 00:51:36 -04:00
..
2011-02-12 00:22:29 -05:00
2011-09-18 10:14:37 -04:00
2011-08-14 15:17:36 -04:00
2011-09-11 12:35:41 -04:00
2011-03-17 20:41:37 -04:00
2011-03-04 00:45:59 -05:00
2011-03-04 00:45:59 -05:00
2011-03-04 00:45:59 -05:00
2011-03-04 00:45:59 -05:00
2011-04-17 11:43:03 -04:00