sys: Fix crashes with TTY console, add sending of signals

This commit is contained in:
WerWolv
2021-06-05 22:39:47 +02:00
parent d1b942cea5
commit 53c8f6ec74
2 changed files with 45 additions and 11 deletions

View File

@@ -4,7 +4,9 @@
#include <windows.h>
#include <mutex>
#include <thread>
#include <vector>
namespace hex {
@@ -25,7 +27,7 @@ namespace hex {
bool connect();
bool disconnect();
void transmitData();
void transmitData(std::vector<char> &data);
HANDLE m_portHandle = INVALID_HANDLE_VALUE;
std::jthread m_receiveThread;
@@ -39,6 +41,7 @@ namespace hex {
bool m_shouldAutoScroll = true;
std::mutex m_receiveBufferMutex;
std::vector<char> m_receiveDataBuffer, m_transmitDataBuffer;
std::vector<u32> m_wrapPositions;
bool m_transmitting = false;