mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-10-31 12:17:51 +00:00
Rebased usage of SleepClientThread
This commit is contained in:
parent
06a7676ed1
commit
143878a474
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ void File::Read(Kernel::HLERequestContext& ctx) {
|
||||||
}
|
}
|
||||||
rb.PushMappedBuffer(buffer);
|
rb.PushMappedBuffer(buffer);
|
||||||
|
|
||||||
u64 read_timeout_ns = backend->GetReadDelayNs(length);
|
std::chrono::nanoseconds read_timeout_ns{backend->GetReadDelayNs(length)};
|
||||||
ctx.SleepClientThread(Kernel::GetCurrentThread(), "file::read", read_timeout_ns,
|
ctx.SleepClientThread(Kernel::GetCurrentThread(), "file::read", read_timeout_ns,
|
||||||
[](Kernel::SharedPtr<Kernel::Thread> thread,
|
[](Kernel::SharedPtr<Kernel::Thread> thread,
|
||||||
Kernel::HLERequestContext& ctx, ThreadWakeupReason reason) {
|
Kernel::HLERequestContext& ctx, ThreadWakeupReason reason) {
|
||||||
|
|
Loading…
Reference in a new issue