]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/threading/semaphore.h
Reuse seed when updating stars
[dragonfireclient.git] / src / threading / semaphore.h
index 76a8f48a6bededb07ba3ee6278f3fd695e320c55..a8847a1005f1214d32a72b122a9ebc652d97e073 100644 (file)
@@ -35,6 +35,8 @@ class Semaphore
        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 @@ class Semaphore
 #else
        sem_t semaphore;
 #endif
-
-       DISABLE_CLASS_COPY(Semaphore);
 };