Browse Source

fix Semaphore

mikymod 12 năm trước cách đây
mục cha
commit
08a37fbfe2
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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);