[gameprogrammer] Re: pthreads question

  • From: Alan Wolfe <alan.wolfe@xxxxxxxxx>
  • To: gameprogrammer@xxxxxxxxxxxxx
  • Date: Fri, 20 Apr 2012 10:31:30 -0700

I shoulda RTFM'd i guess.  Thanks a bunch Brian

(FWIW to future people reading this, the sibling page to that page for
cond_wait specifically does mention spurious wakeups, while this one does
not at all, so it seems pretty conclusive that semaphores do not have
spurious wakeups)

On Fri, Apr 20, 2012 at 9:19 AM, Brian Barrett <brian.ripoff@xxxxxxxxx>wrote:

> > does anyone know if sem_wait has spurious wakeups like condition
> variables
> > do?  I was trying to google that but couldn't find anything that said one
> > way or the other, so i'm assuming they don't but not sure :P
>
> The documentation at http://linux.die.net/man/3/sem_wait says: "the
> call blocks until either it becomes possible to perform the decrement
> (i.e., the semaphore value rises above zero), or a signal handler
> interrupts the call."
>
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>
>
>

Other related posts: