htc: implement htclow listener thread
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user