From: <ro...@us...> - 2008-08-19 14:24:57
|
Revision: 1945 http://nscldaq.svn.sourceforge.net/nscldaq/?rev=1945&view=rev Author: ron-fox Date: 2008-08-19 14:25:07 +0000 (Tue, 19 Aug 2008) Log Message: ----------- Implement forgotton destructor method for condition variables. Modified Paths: -------------- trunk/nextgen/base/thread/CCondition.cpp Modified: trunk/nextgen/base/thread/CCondition.cpp =================================================================== --- trunk/nextgen/base/thread/CCondition.cpp 2008-08-18 20:36:30 UTC (rev 1944) +++ trunk/nextgen/base/thread/CCondition.cpp 2008-08-19 14:25:07 UTC (rev 1945) @@ -114,6 +114,15 @@ } /*! + Destructor destroys the condition variable. We will ignore the return status. + +*/ +CConditionVariable::~CConditionVariable() +{ + pthread_cond_destroy(&m_condition); +} + +/*! Signal a condition variable unblocking one thread...the unblocked thread will come out of the block holding the mutex it associated with its wait. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |