projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[CSM] Don't Load the package library (#6944)
[oweals/minetest.git]
/
src
/
threading
/
semaphore.h
diff --git
a/src/threading/semaphore.h
b/src/threading/semaphore.h
index 76a8f48a6bededb07ba3ee6278f3fd695e320c55..a8847a1005f1214d32a72b122a9ebc652d97e073 100644
(file)
--- a/
src/threading/semaphore.h
+++ b/
src/threading/semaphore.h
@@
-35,6
+35,8
@@
public:
Semaphore(int val = 0);
~Semaphore();
+ DISABLE_CLASS_COPY(Semaphore);
+
void post(unsigned int num = 1);
void wait();
bool wait(unsigned int time_ms);
@@
-47,6
+49,4
@@
private:
#else
sem_t semaphore;
#endif
-
- DISABLE_CLASS_COPY(Semaphore);
};