[AGENT++] Why need the Agentpp::Synchronized class a pthread_cond_t cont member?

Claus Klein claus.klein at arcormail.de
Sat Nov 17 23:16:20 CET 2018


> Am 16.11.2018 um 23:43 schrieb Frank Fock <fock at agentpp.com>:
> 
> The main purpose of the LockQueue is to being able to unlock an object by a different thread than it was locked by.

According manual page:
	„Calling pthread_mutex_unlock() with a mutex that the calling thread does not hold will result in undefined behavior.“

So how does you do this work?

Regards
Claus


More information about the AGENTPP mailing list