]> git.lizzy.rs Git - minetest.git/blobdiff - src/jthread/jsemaphore.h
Fix msvc2012 build
[minetest.git] / src / jthread / jsemaphore.h
index 70318d5da78b94373c68099fc09a986791d9b077..bdce2e4aeb0d338f33950969108b7ef33cea0860 100644 (file)
@@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #if defined(WIN32)
 #include <windows.h>
+#include <assert.h>
 #define MAX_SEMAPHORE_COUNT 1024
 #else
 #include <pthread.h>
@@ -36,6 +37,7 @@ class JSemaphore {
 
        void Post();
        void Wait();
+       bool Wait(unsigned int time_ms);
 
        int GetValue();