mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-26 09:02:44 -06:00
kernel/svc: Add request registering
All necessary objects are available here, making this a great place for the registering part.
This commit is contained in:
parent
b093d39a27
commit
cb0bd6530c
1 changed files with 7 additions and 1 deletions
|
@ -387,7 +387,13 @@ ResultCode SVC::SendSyncRequest(Handle handle) {
|
|||
|
||||
system.PrepareReschedule();
|
||||
|
||||
return session->SendSyncRequest(SharedFrom(kernel.GetThreadManager().GetCurrentThread()));
|
||||
auto thread = SharedFrom(kernel.GetThreadManager().GetCurrentThread());
|
||||
|
||||
if (kernel.GetIPCRecorder().IsEnabled()) {
|
||||
kernel.GetIPCRecorder().RegisterRequest(session, thread);
|
||||
}
|
||||
|
||||
return session->SendSyncRequest(thread);
|
||||
}
|
||||
|
||||
/// Close a handle
|
||||
|
|
Loading…
Reference in a new issue