Project

General

Profile

Statistics
| Branch: | Revision:

root / include / clock.h @ aeae20a1

History | View | Annotate | Download (934 Bytes)

1 2c43d39b Simon Tenbusch
//==========================================================================
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 e118c57b Simon Tenbusch
 Copyright (C) 2011 Simon Tenbusch
15 2c43d39b 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
 *--------------------------------------------------------------*/
19 2c43d39b Simon Tenbusch
20
#ifndef CLOCK_H_
21
#define CLOCK_H_
22
23
#include "simkerneldefs.h"
24
25 e118c57b Simon Tenbusch
class cLock
26
{
27 2c43d39b Simon Tenbusch
public:
28 e118c57b Simon Tenbusch
    /*
29
     * Locks the lock
30
     */
31
    virtual void lock() = 0;
32
    /*
33
     * Unlocks the lock
34
     */
35
    virtual void unlock() = 0;
36 2c43d39b Simon Tenbusch
37
};
38
39
#endif /* CLOCK_H_ */