mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-02 07:39:49 -04:00
tma: Fix sleep/wake semantics, now tested on hardware.
This commit is contained in:
parent
9fe8b22269
commit
d875d84d2d
4 changed files with 11 additions and 2 deletions
|
@ -93,6 +93,7 @@ void TmaServiceManager::AddWork(TmaWorkType type, TmaTask *task, TmaPacket *pack
|
|||
work_item->task = task;
|
||||
work_item->packet = packet;
|
||||
work_item->work_type = type;
|
||||
this->work_queue.Send(reinterpret_cast<uintptr_t>(work_item));
|
||||
}
|
||||
|
||||
/* Packet management. */
|
||||
|
@ -391,6 +392,7 @@ void TmaServiceManager::HandleSleepWork() {
|
|||
this->wake_signal.Wait();
|
||||
|
||||
/* We're awake now... */
|
||||
this->SetAsleep(false);
|
||||
|
||||
/* Wake up services. */
|
||||
for (auto srv : this->services) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue