WaitObject: Renamed "Wait" to "ShouldWait", made "ShouldWait" and "Acquire" pure virtual.

This commit is contained in:
bunnei 2015-01-20 17:41:12 -05:00
parent 69c5830ef2
commit c68eb15695
9 changed files with 22 additions and 23 deletions

View file

@ -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);
}
};
}