WaitObject: Renamed "Wait" to "ShouldWait", made "ShouldWait" and "Acquire" pure virtual.
This commit is contained in:
parent
69c5830ef2
commit
c68eb15695
9 changed files with 22 additions and 23 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
ResultVal<bool> Thread::Wait() {
|
||||
ResultVal<bool> Thread::ShouldWait() {
|
||||
return MakeResult<bool>(status != THREADSTATUS_DORMANT);
|
||||
}
|
||||
|
||||
|
@ -269,7 +269,7 @@ void Thread::ReleaseWaitObject(WaitObject* wait_object) {
|
|||
|
||||
// Iterate through all waiting objects to check availability...
|
||||
for (auto itr = wait_objects.begin(); itr != wait_objects.end(); ++itr) {
|
||||
auto res = (*itr)->Wait();
|
||||
auto res = (*itr)->ShouldWait();
|
||||
|
||||
if (*res && res.Succeeded())
|
||||
wait_all_failed = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue