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
|
@ -54,11 +54,16 @@ public:
|
|||
*/
|
||||
virtual ResultVal<bool> SyncRequest() = 0;
|
||||
|
||||
ResultVal<bool> Wait() override {
|
||||
// TODO(bunnei): This function exists to satisfy a hardware test with a Session object
|
||||
// passed into WaitSynchronization. Not sure if it's possible for this to ever be false?
|
||||
// TODO(bunnei): These functions exist to satisfy a hardware test with a Session object
|
||||
// passed into WaitSynchronization. Figure out the meaning of them.
|
||||
|
||||
ResultVal<bool> ShouldWait() override {
|
||||
return MakeResult<bool>(true);
|
||||
}
|
||||
|
||||
ResultVal<bool> Acquire() override {
|
||||
return MakeResult<bool>(false);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue