Restrict uv_default_loop() to main thread
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user