split Acquire function of Semaphore
This commit is contained in:
@@ -21,7 +21,8 @@ namespace hgl
|
|||||||
virtual bool Post(int n=1); ///<发送信号
|
virtual bool Post(int n=1); ///<发送信号
|
||||||
|
|
||||||
virtual bool TryAcquire(); ///<尝试取得一个信号
|
virtual bool TryAcquire(); ///<尝试取得一个信号
|
||||||
virtual bool Acquire(double time=0.0); ///<等待并获取一个信号
|
virtual bool Acquire(); ///<等待并获取一个信号
|
||||||
|
virtual bool Acquire(double time); ///<等待并获取一个信号
|
||||||
};//class Semaphore
|
};//class Semaphore
|
||||||
}//namespace hgl
|
}//namespace hgl
|
||||||
#endif//HGL_SEMAPHORE_INCLUDE
|
#endif//HGL_SEMAPHORE_INCLUDE
|
||||||
|
Reference in New Issue
Block a user