[AGENT++] agent++v3.5.30: Funny code in threads.cpp

Dominik Vogt Dominik.Vogt at external.thalesgroup.com
Tue Aug 3 12:25:22 CEST 2010


What is this code snippet from threads.cpp supposed to do?  That looks
either useless or wrong:

	ThreadManager::~ThreadManager()
	{
	#ifdef _THREADS
-->	    if (trylock())
-->	       	unlock();
-->	    else
-->	       	unlock();
	#endif
	}

Ciao

Dominik ^_^  ^_^




More information about the AGENTPP mailing list