Kernel: Changed "ShouldWait" to return bool and "Acquire" to return void.
This commit is contained in:
parent
c68eb15695
commit
15b6a4d9ad
9 changed files with 42 additions and 71 deletions
|
@ -120,13 +120,10 @@ public:
|
|||
* Check if the current thread should wait until the object is available
|
||||
* @return True if the current thread should wait due to this object being unavailable
|
||||
*/
|
||||
virtual ResultVal<bool> ShouldWait() = 0;
|
||||
virtual bool ShouldWait() = 0;
|
||||
|
||||
/**
|
||||
* Acquire/lock the object if it is available
|
||||
* @return True if we were able to acquire this object, otherwise false
|
||||
*/
|
||||
virtual ResultVal<bool> Acquire() = 0;
|
||||
/// Acquire/lock the object if it is available
|
||||
virtual void Acquire() = 0;
|
||||
|
||||
/**
|
||||
* Add a thread to wait on this object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue