This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]