Revision e118c57b include/cnolock.h

View differences:

include/cnolock.h
11 11
//==========================================================================
12 12

  
13 13
/*--------------------------------------------------------------*
14
  Copyright (C) 2011 Simon Tenbusch
14
 Copyright (C) 2011 Simon Tenbusch
15 15

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

  
20 20
#ifndef CNOLOCK_H_
......
22 22

  
23 23
#include "clock.h"
24 24

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

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

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

  
39
	/*
40
	 * Locks the lock
41
	 */
42
	void lock() { }
43

  
44
	/*
45
	 * Unlocks the lock
46
	 */
47
	void unlock() { }
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
    }
48 53
};
49 54

  
50 55
#endif /* CNOLOCK_H_ */

Also available in: Unified diff