Project

General

Profile

Statistics
| Branch: | Revision:

root / include / cnolock.h @ a3be1d55

History | View | Annotate | Download (1.02 KB)

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

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

    
20
#ifndef CNOLOCK_H_
21
#define CNOLOCK_H_
22

    
23
#include "clock.h"
24

    
25
class cNoLock: public cLock
26
{
27
private:
28

    
29
public:
30
    /**
31
     * Constructor.
32
     */
33
    cNoLock();
34

    
35
    /**
36
     * Destructor.
37
     */
38
    virtual ~cNoLock();
39

    
40
    /*
41
     * Locks the lock
42
     */
43
    void lock()
44
    {
45
    }
46

    
47
    /*
48
     * Unlocks the lock
49
     */
50
    void unlock()
51
    {
52
    }
53
};
54

    
55
#endif /* CNOLOCK_H_ */