mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 16:45:47 +00:00
kernel: Add SyncObject primitive, use it for ClientSession.
This commit is contained in:
parent
58cf9d847a
commit
8fdafee314
4 changed files with 41 additions and 10 deletions
|
@ -7,7 +7,7 @@
|
|||
#include <memory>
|
||||
#include <string>
|
||||
#include "common/common_types.h"
|
||||
#include "core/hle/kernel/kernel.h"
|
||||
#include "core/hle/kernel/sync_object.h"
|
||||
#include "core/hle/result.h"
|
||||
|
||||
namespace Kernel {
|
||||
|
@ -16,7 +16,7 @@ class ServerSession;
|
|||
class Session;
|
||||
class Thread;
|
||||
|
||||
class ClientSession final : public Object {
|
||||
class ClientSession final : public SyncObject {
|
||||
public:
|
||||
friend class ServerSession;
|
||||
|
||||
|
@ -33,12 +33,7 @@ public:
|
|||
return HANDLE_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends an SyncRequest from the current emulated thread.
|
||||
* @param thread Thread that initiated the request.
|
||||
* @return ResultCode of the operation.
|
||||
*/
|
||||
ResultCode SendSyncRequest(SharedPtr<Thread> thread);
|
||||
ResultCode SendSyncRequest(SharedPtr<Thread> thread) override;
|
||||
|
||||
std::string name; ///< Name of client port (optional)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue