Revision b781545c include/cnolock.h

View differences:

include/cnolock.h
12 12

  
13 13
/*--------------------------------------------------------------*
14 14
 Copyright (C) 2011 Simon Tenbusch
15
 Copyright (C) 2012 Georg Kunz
15 16

  
16 17
 This file is distributed WITHOUT ANY WARRANTY. See the file
17 18
 `license' for details on this and other legal matters.
......
20 21
#ifndef CNOLOCK_H_
21 22
#define CNOLOCK_H_
22 23

  
23
#include "clock.h"
24

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

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

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

  
40 29
    /*
41 30
     * Locks the lock
42 31
     */
43
    void lock()
32
    inline void lock()
44 33
    {
45 34
    }
46 35

  
47 36
    /*
48 37
     * Unlocks the lock
49 38
     */
50
    void unlock()
39
    inline void unlock()
51 40
    {
52 41
    }
53 42
};

Also available in: Unified diff