summaryrefslogtreecommitdiff
path: root/src/msvc6/testrunner/MfcSynchronizationObject.h
blob: 34a6aa4cc575bd4185019531c4c2148560723010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// //////////////////////////////////////////////////////////////////////////
// Header file LightweightSynchronizationObject.h for class LightweightSynchronizationObject
// (c)Copyright 2000, Baptiste Lepilleur.
// Created: 2002/02/27
// //////////////////////////////////////////////////////////////////////////
#ifndef LIGHTWEIGHTSYNCHRONIZATIONOBJECT_H
#define LIGHTWEIGHTSYNCHRONIZATIONOBJECT_H

#include <cppunit/SynchronizedObject.h>


/*! \class LightweightSynchronizationObject
 * \brief This class represents a lock object for synchronized object.
 */
class MfcSynchronizationObject 
    : public CPPUNIT_NS::SynchronizedObject::SynchronizationObject
{
  CCriticalSection m_syncObject;

public:
    void lock()
    {
      m_syncObject.Lock();
    }
    
    void unlock()
    {
      m_syncObject.Unlock();
    }
};



// Inlines methods for LightweightSynchronizationObject:
// -----------------------------------------------------



#endif  // LIGHTWEIGHTSYNCHRONIZATIONOBJECT_H