Add HLERequestContext::RunAsync (#7027)

This commit is contained in:
PabloMK7 2023-10-02 20:09:27 +02:00 committed by GitHub
parent 38a0a85777
commit 9ec4954380
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 103 additions and 14 deletions

View file

@ -238,8 +238,10 @@ public:
/**
* Schedules an event to wake up the specified thread after the specified delay
* @param nanoseconds The time this thread will be allowed to sleep for
* @param thread_safe_mode Set to true if called from a different thread than the emulator
* thread, such as coroutines.
*/
void WakeAfterDelay(s64 nanoseconds);
void WakeAfterDelay(s64 nanoseconds, bool thread_safe_mode = false);
/**
* Sets the result after the thread awakens (from either WaitSynchronization SVC)