Statistics
| Branch: | Revision:

root / include / cnolock.h @ ffa9279f

History | View | Annotate | Download (948 Bytes)

1 ab8c7f8d Simon Tenbusch
//==========================================================================
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 e118c57b Simon Tenbusch
 Copyright (C) 2011 Simon Tenbusch
15 b781545c Georg Kunz
 Copyright (C) 2012 Georg Kunz
16 ab8c7f8d Simon Tenbusch

17 e118c57b Simon Tenbusch
 This file is distributed WITHOUT ANY WARRANTY. See the file
18
 `license' for details on this and other legal matters.
19 ab8c7f8d Simon Tenbusch
 *--------------------------------------------------------------*/
20
21
#ifndef CNOLOCK_H_
22
#define CNOLOCK_H_
23
24 b781545c Georg Kunz
class cNoLock
25 e118c57b Simon Tenbusch
{
26 ab8c7f8d Simon Tenbusch
private:
27
28
public:
29 e118c57b Simon Tenbusch
    /*
30
     * Locks the lock
31
     */
32 b781545c Georg Kunz
    inline void lock()
33 e118c57b Simon Tenbusch
    {
34
    }
35
36
    /*
37
     * Unlocks the lock
38
     */
39 b781545c Georg Kunz
    inline void unlock()
40 e118c57b Simon Tenbusch
    {
41
    }
42 ab8c7f8d Simon Tenbusch
};
43
44
#endif /* CNOLOCK_H_ */