diff options
author | deischen <deischen@FreeBSD.org> | 2004-02-03 05:47:19 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2004-02-03 05:47:19 +0000 |
commit | 5be959edb75719c22c3fa0b8cf5071349caa5576 (patch) | |
tree | d0a2ff3567ca4b8e5c6abc5bff0027dc4d39c690 /lib/libpthread | |
parent | 1425928c3259e97e1950df0a06ffd070468ff485 (diff) | |
download | FreeBSD-src-5be959edb75719c22c3fa0b8cf5071349caa5576.zip FreeBSD-src-5be959edb75719c22c3fa0b8cf5071349caa5576.tar.gz |
Modify the implementation of libc semaphores so that they can be
overridden by the threads library to provide a userland version
of non-pshared semaphores and cancellation points. Also add
a sem_timedwait().
The libc version of semaphores always uses kernel semaphores
regardless of whether pshared is set or not. When threads are
not present, it is difficult to get sem_wait() or sem_timedwait()
to do the right thing (since pthread_cond_timedwait() and
pthread_cond_wait() are stubs in libc and just return immediately).
Diffstat (limited to 'lib/libpthread')
0 files changed, 0 insertions, 0 deletions