MUtilities development repository
修订版 | 5068bf06eb6f5c71d470a22a3d0cf5048aedf7f6 (tree) |
---|---|
时间 | 2015-08-10 04:34:31 |
作者 | ![]() |
Commiter | LoRd_MuldeR |
Small synchronization fix.
@@ -163,6 +163,8 @@ static inline std::filebuf *terminal_connect(FILE *const fs, std::ostream &os) | ||
163 | 163 | |
164 | 164 | static void terminal_shutdown(void) |
165 | 165 | { |
166 | + MUtils::Internal::CSLocker lock(g_terminal_lock); | |
167 | + | |
166 | 168 | if (g_terminal_attached) |
167 | 169 | { |
168 | 170 | g_fileBuf_stdout.reset(); |