diff options
author | Subv <subv2112@gmail.com> | 2017-01-01 22:53:22 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2017-01-04 21:58:45 +0100 |
commit | e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6 (patch) | |
tree | b56862bb64fcf57727149de90318671ffd8afe4d /src/core/hle/kernel/server_session.cpp | |
parent | Kernel/Synch: Do not attempt a reschedule on every syscall. (diff) | |
download | yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.tar yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.tar.gz yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.tar.bz2 yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.tar.lz yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.tar.xz yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.tar.zst yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/server_session.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/server_session.cpp b/src/core/hle/kernel/server_session.cpp index 146458c1c..9447ff236 100644 --- a/src/core/hle/kernel/server_session.cpp +++ b/src/core/hle/kernel/server_session.cpp @@ -29,12 +29,12 @@ ResultVal<SharedPtr<ServerSession>> ServerSession::Create( return MakeResult<SharedPtr<ServerSession>>(std::move(server_session)); } -bool ServerSession::ShouldWait() { +bool ServerSession::ShouldWait(Thread* thread) const { return !signaled; } -void ServerSession::Acquire() { - ASSERT_MSG(!ShouldWait(), "object unavailable!"); +void ServerSession::Acquire(Thread* thread) { + ASSERT_MSG(!ShouldWait(thread), "object unavailable!"); signaled = false; } |