Project

General

Profile

Statistics
| Branch: | Revision:

root / include / clock.h @ 81ad8b66

History | View | Annotate | Download (934 Bytes)

1
//==========================================================================
2
//  CLOCK.H - part of
3
//
4
//                     Horizon/OMNeT++/OMNEST
5
//            Discrete System Simulation in C++
6
//
7
//
8
//  Declaration of the following classes:
9
//    cLock: Baseclass for different implementations of threadsafe locks.
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 CLOCK_H_
21
#define CLOCK_H_
22

    
23
#include "simkerneldefs.h"
24

    
25
class cLock
26
{
27
public:
28
    /*
29
     * Locks the lock
30
     */
31
    virtual void lock() = 0;
32
    /*
33
     * Unlocks the lock
34
     */
35
    virtual void unlock() = 0;
36

    
37
};
38

    
39
#endif /* CLOCK_H_ */