Explorar o código

fix Semaphore

mikymod %!s(int64=12) %!d(string=hai) anos
pai
achega
08a37fbfe2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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);
 	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;
 	DWORD milliseconds = (0 > msecs) ? INFINITE : msecs;
 	return WAIT_OBJECT_0 == WaitForSingleObject(m_handle, milliseconds);
 	return WAIT_OBJECT_0 == WaitForSingleObject(m_handle, milliseconds);