Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 1020 vs 1021 for /trunk/Source Code/Core/Console.cpp

Diff revisions: vs.
  @@ -146,16 +146,17 @@
146 146 UniqueLock lk(condMutex());
147 147 entryEnqueCV().wait(lk, []() -> bool { return entryAdded(); });
148 148
149 - if (outBuffer().try_dequeue(/*ctok, */entry)) {
149 + while (outBuffer().try_dequeue(/*ctok, */entry)) {
150 150 #endif
151 151 ((entry._type == EntryType::Error && _errorStreamEnabled) ? std::cerr : std::cout) << entry._text.c_str();
152 152
153 153 for (const Console::ConsolePrintCallback& cbk : _guiConsoleCallbacks) {
154 154 cbk(entry);
155 155 }
156 - } else {
157 - std::this_thread::yield();
158 - }
156 + }
157 + //else {
158 + //std::this_thread::yield();
159 + //}
159 160 }
160 161 std::cout << "------------------------------------------" << std::endl
161 162 << std::endl << std::endl << std::endl;