Move libcds 1.6.0 from SVN
[libcds.git] / tests / unit / lock / nolock.h
1 //$$CDS-header$$
2
3 #ifndef __UNIT_LOCK_NOLOCK_H
4 #define __UNIT_LOCK_NOLOCK_H
5
6 namespace lock {
7     // Win32 critical section
8     class NoLock {
9     public:
10         void lock()     {}
11         void unlock()   {}
12         bool tryLock()  { return true; }
13     };
14 }
15
16 #endif // #ifndef __UNIT_LOCK_NOLOCK_H