Added cppunit to the ./contrib dir. Build config for x64 and dll builds (some bugs remaining, but most configs are working)
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@70 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
32
contrib/cppunit-1.12.1/src/cppunit/SynchronizedObject.cpp
Normal file
32
contrib/cppunit-1.12.1/src/cppunit/SynchronizedObject.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#include <cppunit/SynchronizedObject.h>
|
||||
|
||||
|
||||
CPPUNIT_NS_BEGIN
|
||||
|
||||
|
||||
SynchronizedObject::SynchronizedObject( SynchronizationObject *syncObject )
|
||||
: m_syncObject( syncObject == 0 ? new SynchronizationObject() :
|
||||
syncObject )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
SynchronizedObject::~SynchronizedObject()
|
||||
{
|
||||
delete m_syncObject;
|
||||
}
|
||||
|
||||
|
||||
/** Accept a new synchronization object for protection of this instance
|
||||
* TestResult assumes ownership of the object
|
||||
*/
|
||||
void
|
||||
SynchronizedObject::setSynchronizationObject( SynchronizationObject *syncObject )
|
||||
{
|
||||
delete m_syncObject;
|
||||
m_syncObject = syncObject;
|
||||
}
|
||||
|
||||
|
||||
CPPUNIT_NS_END
|
||||
|
||||
Reference in New Issue
Block a user