Date: Mon, 2 Feb 2004 21:47:19 -0800 (PST) From: Daniel Eischen <deischen@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen sem.c Message-ID: <200402030547.i135lKKc095786@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
deischen 2004/02/02 21:47:19 PST FreeBSD src repository Modified files: lib/libc/gen sem.c Log: 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). Revision Changes Path 1.8 +132 -146 src/lib/libc/gen/sem.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402030547.i135lKKc095786>