UNCLASSIFIED

GeographicTranslator
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
CCSThreadMutex.h
Go to the documentation of this file.
1 // CLASSIFICATION: UNCLASSIFIED
2 
3 #ifndef MSP_CCSTHREADMUTEX_H
4 #define MSP_CCSTHREADMUTEX_H
5 
6 #ifndef WIN32
7 # include <pthread.h>
8 #endif
9 
10 #include "DtccApi.h"
11 
12 namespace MSP
13 {
15  {
16  public:
19 
21  ~CCSThreadMutex();
22 
23  void lock() const;
24 
25  void unlock() const;
26 
27  private:
28  // no copy operators
30  CCSThreadMutex &operator=( const CCSThreadMutex&);
31 
32 #ifdef WIN32
33  void *mutex;
34 #else
35  mutable pthread_mutex_t mutex;
36 #endif
37 
38  };
39 }
40 #endif
41 
42 // CLASSIFICATION: UNCLASSIFIED