Revision e118c57b include/cpthreadlock.h

View differences:

include/cpthreadlock.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 CPTHREADLOCK_H_
......
24 24

  
25 25
#include <pthread.h>
26 26

  
27

  
28
class cPThreadLock : public cLock{
27
class cPThreadLock: public cLock
28
{
29 29
private:
30 30
    pthread_mutex_t mutex;
31 31
public:
32
	/**
33
	 * Constructor.
34
	 */
35
	cPThreadLock();
36

  
37
	/**
38
	 * Destructor.
39
	 */
40
	~cPThreadLock();
41

  
42
	/*
43
	 * Locks the lock
44
	 */
45
	virtual void lock();
46

  
47
	/*
48
	 * Unlocks the lock
49
	 */
50
	virtual void unlock();
32
    /**
33
     * Constructor.
34
     */
35
    cPThreadLock();
36

  
37
    /**
38
     * Destructor.
39
     */
40
    virtual ~cPThreadLock();
41

  
42
    /*
43
     * Locks the lock
44
     */
45
    virtual void lock();
46

  
47
    /*
48
     * Unlocks the lock
49
     */
50
    virtual void unlock();
51 51

  
52 52
};
53 53

  

Also available in: Unified diff