projects
/
invirt/third/libt4.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Build on wheezy, and presumably precise
[invirt/third/libt4.git]
/
mutex.h
1
#ifndef mutex_h
2
#define mutex_h
3
4
#include <pthread.h>
5
6
class mutex {
7
protected:
8
pthread_mutex_t m;
9
public:
10
mutex();
11
~mutex();
12
void acquire();
13
void release();
14
operator pthread_mutex_t *();
15
};
16
17
class cond {
18
protected:
19
pthread_cond_t c;
20
public:
21
cond();
22
~cond();
23
void wait(mutex &m);
24
void signal();
25
void broadcast();
26
};
27
28
#endif