Kernel: Separate WaitSynchronization into Wait and Acquire methods.
This commit is contained in:
parent
627e96fc15
commit
aa01c57ae9
8 changed files with 59 additions and 18 deletions
|
@ -29,7 +29,7 @@ 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> WaitSynchronization(unsigned index) override {
|
||||
ResultVal<bool> Wait(unsigned index) override {
|
||||
bool wait = !signaled;
|
||||
if (wait) {
|
||||
AddWaitingThread(GetCurrentThread());
|
||||
|
@ -37,6 +37,10 @@ public:
|
|||
}
|
||||
return MakeResult<bool>(wait);
|
||||
}
|
||||
|
||||
ResultVal<bool> Acquire() override {
|
||||
return MakeResult<bool>(true);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue