Kernel: Changed "ShouldWait" to return bool and "Acquire" to return void.

This commit is contained in:
bunnei 2015-01-20 18:16:45 -05:00
parent c68eb15695
commit 15b6a4d9ad
9 changed files with 42 additions and 71 deletions

View file

@ -29,12 +29,12 @@ public:
u64 initial_delay; ///< The delay until the timer fires for the first time
u64 interval_delay; ///< The delay until the timer fires after the first time
ResultVal<bool> ShouldWait() override {
return MakeResult<bool>(!signaled);
bool ShouldWait() override {
return !signaled;
}
ResultVal<bool> Acquire() override {
return MakeResult<bool>(true);
void Acquire() override {
_assert_msg_(Kernel, !ShouldWait(), "object unavailable!");
}
};