This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
Re: calling mutex_lock() twice from one thread
Will Bryant wrote:
> Yes, aside from the fact that you want non-recursive locks, semaphores
> are the _only_ synchronization primitive that can be used from inside
> signal handlers. Note that condition variables most definitely cannot
> be signalled from inside a signal handler - that will break - badly - on
> most unix platforms.
Thank you very much. That really helps.