mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-07 22:23:12 +08:00
Merged primary and secondary screens into one class.
This commit is contained in:
@@ -29,6 +29,13 @@ CArchConsoleWindows::CArchConsoleWindows() :
|
||||
s_thread = ARCH->newCurrentThread();
|
||||
|
||||
m_mutex = ARCH->newMutex();
|
||||
|
||||
// dummy write to stderr to create locks in stdio from the main
|
||||
// thread. if we open the console from another thread then we
|
||||
// can deadlock in stdio when trying to write from a 3rd thread.
|
||||
// writes to stderr without a console don't go anywhere so the
|
||||
// user won't notice this.
|
||||
fprintf(stderr, "\n");
|
||||
}
|
||||
|
||||
CArchConsoleWindows::~CArchConsoleWindows()
|
||||
|
||||
Reference in New Issue
Block a user