[CSM] Don't Load the package library (#6944)
[oweals/minetest.git] / src / threading / semaphore.h
index 76a8f48a6bededb07ba3ee6278f3fd695e320c55..a8847a1005f1214d32a72b122a9ebc652d97e073 100644 (file)
@@ -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);
 };