On Mon, 18 Nov 2002, Brian Smith wrote: > I've been porting an application from Linux to FreeBSD using STABLE, and it appears >from looking at the > semaphore code that the SysV semaphores are not thread safe on STABLE. I don't have >CURRENT source > code to look at currently. Does anyone know if they are thread-safe in CURRENT?
[ I assume you mean semop, semctl, not sema_* or sem_* ] Sure SysV semaphores are thread-safe. When a thread blocks on one, the entire process blocks (no threads run). You won't get any safer than that ;-) -- Dan Eischen To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message