mikymod 12 лет назад
Родитель
Сommit
08a37fbfe2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      engine/os/win/Semaphore.h

+ 2 - 2
engine/os/win/Semaphore.h

@@ -63,13 +63,13 @@ inline Semaphore::~Semaphore()
 }
 
 //-----------------------------------------------------------------------------
-inline void Semaphore::post(uint32_t count = 1) const
+inline void Semaphore::post(uint32_t count) const
 {
 	ReleaseSemaphore(m_handle, count, NULL);
 }
 
 //-----------------------------------------------------------------------------
-inline bool Semaphore::wait(int32_t msecs = -1) const
+inline bool Semaphore::wait(int32_t msecs) const
 {
 	DWORD milliseconds = (0 > msecs) ? INFINITE : msecs;
 	return WAIT_OBJECT_0 == WaitForSingleObject(m_handle, milliseconds);