summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/client_port.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2016-12-05 17:02:08 +0100
committerSubv <subv2112@gmail.com>2016-12-05 17:02:08 +0100
commitdd8887c8cfbb6d3010dde240278a3d4018c5dd85 (patch)
tree9990a463d5daccdab41ae9c90a5c698aed0d4795 /src/core/hle/kernel/client_port.h
parentDeclare empty ServerSession and ClientSession constructors as default. (diff)
downloadyuzu-dd8887c8cfbb6d3010dde240278a3d4018c5dd85.tar
yuzu-dd8887c8cfbb6d3010dde240278a3d4018c5dd85.tar.gz
yuzu-dd8887c8cfbb6d3010dde240278a3d4018c5dd85.tar.bz2
yuzu-dd8887c8cfbb6d3010dde240278a3d4018c5dd85.tar.lz
yuzu-dd8887c8cfbb6d3010dde240278a3d4018c5dd85.tar.xz
yuzu-dd8887c8cfbb6d3010dde240278a3d4018c5dd85.tar.zst
yuzu-dd8887c8cfbb6d3010dde240278a3d4018c5dd85.zip
Diffstat (limited to 'src/core/hle/kernel/client_port.h')
-rw-r--r--src/core/hle/kernel/client_port.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/hle/kernel/client_port.h b/src/core/hle/kernel/client_port.h
index 4848cb4c4..d217c6649 100644
--- a/src/core/hle/kernel/client_port.h
+++ b/src/core/hle/kernel/client_port.h
@@ -11,7 +11,7 @@
namespace Kernel {
class ServerPort;
-class ServerSession;
+class ClientSession;
class ClientPort final : public Object {
public:
@@ -29,15 +29,17 @@ public:
}
/**
- * Adds the specified server session to the queue of pending sessions of the associated ServerPort
- * @param server_session Server session to add to the queue
+ * Creates a new Session pair, adds the created ServerSession to the associated ServerPort's list of pending sessions,
+ * and signals the ServerPort, causing any threads waiting on it to awake.
+ * @returns ClientSession The client endpoint of the created Session pair.
*/
- void AddWaitingSession(SharedPtr<ServerSession> server_session);
+ SharedPtr<ClientSession> Connect();
SharedPtr<ServerPort> server_port; ///< ServerPort associated with this client port.
u32 max_sessions; ///< Maximum number of simultaneous sessions the port can have
u32 active_sessions; ///< Number of currently open sessions to this port
std::string name; ///< Name of client port (optional)
+
private:
ClientPort();
~ClientPort() override;