Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jul 2004 03:42:52 -0700 (GMT-07:00)
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Petr Holub <hopet@ics.muni.cz>, threads@freebsd.org
Subject:   Re: sem_wait as cancellation point
Message-ID:  <7040592.1089196972901.JavaMail.root@wamui01.slb.atl.earthlink.net>

next in thread | raw e-mail | index | archive | help
Petr Holub <hopet@ics.muni.cz> wrote:
> I wonder why sem_wait is not a pthread cancellation point on
> FreeBSD-5. According to Linux man page:

The Linux man page is totally irrelevant.

Here's what the standards say:

http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.html

" Cancellation Points

  Cancellation points shall occur when a thread is executing the following functions:

   accept()          mq_timedsend()           putpmsg()       sigtimedwait()
   ...
   getmsg()          pselect()                sem_wait()      waitpid()
   ..."

So it looks like it needs to be a cancellation point, if the thread cancellation
option is fully supported.

So before anyone else says it... "patches welcome".

-- Terry                                                



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7040592.1089196972901.JavaMail.root>