Statistics
| Branch: | Revision:

root / include / cnolock.h @ master

History | View | Annotate | Download (948 Bytes)

1
//==========================================================================
2
//  CNOLOCK.H - part of
3
//
4
//                     Horizon/OMNeT++/OMNEST
5
//            Discrete System Simulation in C++
6
//
7
//
8
//  Declaration of the following classes:
9
//    cPThreadLock: Dummy Lock with no functionality
10
//
11
//==========================================================================
12

    
13
/*--------------------------------------------------------------*
14
 Copyright (C) 2011 Simon Tenbusch
15
 Copyright (C) 2012 Georg Kunz
16

17
 This file is distributed WITHOUT ANY WARRANTY. See the file
18
 `license' for details on this and other legal matters.
19
 *--------------------------------------------------------------*/
20

    
21
#ifndef CNOLOCK_H_
22
#define CNOLOCK_H_
23

    
24
class cNoLock
25
{
26
private:
27

    
28
public:
29
    /*
30
     * Locks the lock
31
     */
32
    inline void lock()
33
    {
34
    }
35

    
36
    /*
37
     * Unlocks the lock
38
     */
39
    inline void unlock()
40
    {
41
    }
42
};
43

    
44
#endif /* CNOLOCK_H_ */