htc: implement htclow listener thread

This commit is contained in:
Michael Scire 2021-02-08 05:45:23 -08:00 committed by SciresM
parent c9c41e0e8d
commit 2341f18edd
21 changed files with 669 additions and 11 deletions

View file

@ -34,9 +34,30 @@ namespace ams::htclow {
os::Event m_event;
void *m_receive_thread_stack;
void *m_send_thread_stack;
u8 m_7C400;
bool m_cancelled;
private:
static void ReceiveThreadEntry(void *arg) {
static_cast<Worker *>(arg)->ReceiveThread();
}
static void SendThreadEntry(void *arg) {
static_cast<Worker *>(arg)->SendThread();
}
void ReceiveThread();
void SendThread();
public:
Worker(mem::StandardAllocator *allocator, mux::Mux *mux, ctrl::HtcctrlService *ctrl_srv);
void SetDriver(driver::IDriver *driver);
void Start();
void Wait();
private:
void Cancel();
Result ProcessReceive();
Result ProcessSend();
};
}