Project

General

Profile

Statistics
| Branch: | Revision:

root / include / cnolock.h @ a3be1d55

History | View | Annotate | Download (1.02 KB)

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 ab8c7f8d Simon Tenbusch

16 e118c57b Simon Tenbusch
 This file is distributed WITHOUT ANY WARRANTY. See the file
17
 `license' for details on this and other legal matters.
18 ab8c7f8d Simon Tenbusch
 *--------------------------------------------------------------*/
19
20
#ifndef CNOLOCK_H_
21
#define CNOLOCK_H_
22
23
#include "clock.h"
24
25 e118c57b Simon Tenbusch
class cNoLock: public cLock
26
{
27 ab8c7f8d Simon Tenbusch
private:
28
29
public:
30 e118c57b Simon Tenbusch
    /**
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 ab8c7f8d Simon Tenbusch
};
54
55
#endif /* CNOLOCK_H_ */