summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/sync_object.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-23 22:13:19 +0100
committerbunnei <bunneidev@gmail.com>2018-01-25 04:18:54 +0100
commit67758857e4203cebc9a5815c6b0293c0aad0e598 (patch)
tree6d39ebcb39695f3117864416c56d16edb4611514 /src/core/hle/kernel/sync_object.h
parenthandle_table: Remove ConvertSessionToDomain. (diff)
downloadyuzu-67758857e4203cebc9a5815c6b0293c0aad0e598.tar
yuzu-67758857e4203cebc9a5815c6b0293c0aad0e598.tar.gz
yuzu-67758857e4203cebc9a5815c6b0293c0aad0e598.tar.bz2
yuzu-67758857e4203cebc9a5815c6b0293c0aad0e598.tar.lz
yuzu-67758857e4203cebc9a5815c6b0293c0aad0e598.tar.xz
yuzu-67758857e4203cebc9a5815c6b0293c0aad0e598.tar.zst
yuzu-67758857e4203cebc9a5815c6b0293c0aad0e598.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/sync_object.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/core/hle/kernel/sync_object.h b/src/core/hle/kernel/sync_object.h
deleted file mode 100644
index f2befa2ea..000000000
--- a/src/core/hle/kernel/sync_object.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2018 yuzu emulator team
-// Licensed under GPLv2 or any later version
-// Refer to the license.txt file included.
-
-#pragma once
-
-#include <boost/smart_ptr/intrusive_ptr.hpp>
-#include "core/hle/kernel/kernel.h"
-#include "core/hle/result.h"
-
-namespace Kernel {
-
-class Thread;
-
-/// Class that represents a Kernel object that svcSendSyncRequest can be called on
-class SyncObject : public Object {
-public:
- /**
- * Handle a sync request from the emulated application.
- * @param thread Thread that initiated the request.
- * @returns ResultCode from the operation.
- */
- virtual ResultCode SendSyncRequest(SharedPtr<Thread> thread) = 0;
-};
-
-// Specialization of DynamicObjectCast for SyncObjects
-template <>
-inline SharedPtr<SyncObject> DynamicObjectCast<SyncObject>(SharedPtr<Object> object) {
- if (object != nullptr && object->IsSyncable()) {
- return boost::static_pointer_cast<SyncObject>(std::move(object));
- }
- return nullptr;
-}
-
-} // namespace Kernel