htc: Implement HtcmiscImpl::ClientThread

This commit is contained in:
Michael Scire
2021-02-10 01:29:40 -08:00
committed by SciresM
parent 1867c31f63
commit d60b1abed0
5 changed files with 203 additions and 2 deletions

View File

@@ -45,8 +45,23 @@ namespace ams::htc::server::rpc {
os::EventType m_send_buffer_available_events[MaxRpcCount];
u8 m_receive_buffer[BufferSize];
u8 m_send_buffer[BufferSize];
private:
static void ReceiveThreadEntry(void *arg) { static_cast<RpcClient *>(arg)->ReceiveThread(); }
static void SendThreadEntry(void *arg) { static_cast<RpcClient *>(arg)->SendThread(); }
void ReceiveThread();
void SendThread();
public:
RpcClient(driver::IDriver *driver, htclow::ChannelId channel);
public:
void Open();
void Close();
Result Start();
void Cancel();
void Wait();
int WaitAny(htclow::ChannelState state, os::EventType *event);
};
}