htc: implement htclow listener thread

This commit is contained in:
Michael Scire authored and SciresM committed 2021-02-24 04:06:54 -08:00
1 parent c9c41e0e8d
commit 2341f18edd
21 files changed
+669 -11

No files matched your search

@@ -15,6 +15,7 @@
*/
#include <stratosphere.hpp>
#include "htclow_mux_channel_impl.hpp"
#include "../htclow_packet_factory.hpp"
namespace ams::htclow::mux {
@@ -23,4 +24,12 @@ namespace ams::htclow::mux {
m_version = version;
}
void SendBuffer::Clear() {
while (!m_packet_list.empty()) {
auto *packet = std::addressof(m_packet_list.front());
m_packet_list.pop_front();
m_packet_factory->Delete(packet);
}
}
}