sem_wait as cancellation point
eischen at vigrid.com
Thu Jul 8 03:27:49 PDT 2004
On Thu, 8 Jul 2004, Daniel Eischen wrote:
> On Thu, 8 Jul 2004, Petr Holub wrote:
> > > sem_wait() is a cancellation point in libpthread.
> > No, it is not - at least according to my experience of 5.2.1-RELEASE-p9.
> > When I use following snipplet of code, it keeps hanging in the pthread_join:
> You're using libc_r. libpthread is in -current.
-bash-2.05b$ uname -a
FreeBSD sirius 5.2-CURRENT FreeBSD 5.2-CURRENT #17: Sat Jul 3 20:04:16 EDT 2004
root at sirius:/usr/obj/usr/src/sys/sirius i386
Sleeping for 5 secs.
Waiting for semaphore (this should pass).
Waiting for semaphore (this should hang).
Trying to cancel the thread.
Trying to join the thread.
More information about the freebsd-threads