projects
/
oweals
/
dinit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Upgrade bundled Dasynq to 1.1.2.
[oweals/dinit.git]
/
src
/
dasynq
/
dasynq-mutex.h
1
#ifndef DASYNQ_MUTEX_H_INCLUDED
2
#define DASYNQ_MUTEX_H_INCLUDED
3
4
#include <mutex>
5
6
namespace dasynq {
7
8
// A "null" mutex, for which locking / unlocking actually does nothing.
9
class null_mutex
10
{
11
public:
12
void lock() { }
13
void unlock() { }
14
void try_lock() { }
15
16
private:
17
DASYNQ_EMPTY_BODY;
18
};
19
20
} // end of namespace
21
22
#endif