Revision e118c57b include/cttaslock.h

View differences:

include/cttaslock.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 CTTASLOCK_H_
......
23 23
#include "clock.h"
24 24

  
25 25
#ifdef ATOMIC_OPS_DEBUG
26
	#include "catomicopsdebug.h"
26
#include "catomicopsdebug.h"
27 27
#else
28
	#include <atomic_ops.h>
28
#include <atomic_ops.h>
29 29
#endif
30 30

  
31
class cTTASLock : public cLock{
31
class cTTASLock: public cLock
32
{
32 33
private:
33
	AO_t lck;
34
    AO_t lck;
34 35

  
35 36
public:
36
	/**
37
	 * Constructor.
38
	 */
39
	cTTASLock();
40

  
41
	/**
42
	 * Destructor.
43
	 */
44
	~cTTASLock();
45

  
46
	/*
47
	 * Locks the lock
48
	 */
49
	void lock();
50

  
51
	/*
52
	 * Unlocks the lock
53
	 */
54
	void unlock();
37
    /**
38
     * Constructor.
39
     */
40
    cTTASLock();
41

  
42
    /**
43
     * Destructor.
44
     */
45
    virtual ~cTTASLock();
46

  
47
    /*
48
     * Locks the lock
49
     */
50
    void lock();
51

  
52
    /*
53
     * Unlocks the lock
54
     */
55
    void unlock();
55 56

  
56 57
};
57 58

  

Also available in: Unified diff