diff --git a/inc/hgl/thread/Semaphore.h b/inc/hgl/thread/Semaphore.h index fd13885..2408b4a 100644 --- a/inc/hgl/thread/Semaphore.h +++ b/inc/hgl/thread/Semaphore.h @@ -21,7 +21,8 @@ namespace hgl virtual bool Post(int n=1); ///<发送信号 virtual bool TryAcquire(); ///<尝试取得一个信号 - virtual bool Acquire(double time=0.0); ///<等待并获取一个信号 + virtual bool Acquire(); ///<等待并获取一个信号 + virtual bool Acquire(double time); ///<等待并获取一个信号 };//class Semaphore }//namespace hgl #endif//HGL_SEMAPHORE_INCLUDE