Restrict uv_default_loop() to main thread

This commit is contained in:
SChernykh
2021-08-25 12:17:14 +02:00
parent dbf18c34a4
commit d8efb27374
8 changed files with 72 additions and 38 deletions

View File

@@ -51,6 +51,8 @@ public:
: m_writePos(0)
, m_readPos(0)
{
is_main_thread = true;
m_logFile.open(log_file_name, std::ios::app | std::ios::binary);
m_buf.resize(BUF_SIZE);