@@ -25,6 +25,7 @@
#endif
#include "../Core/StringUtils.h"
+#include "../Core/Timer.h"
#include "../IO/Log.h"
#include "IPCUnix.h"
@@ -59,6 +60,9 @@ void IPCBroker::ThreadFunction()
{
break;
}
+
+ // sleep thread a bit so we don't gobble CPU
+ Time::Sleep(100);
shouldRun_ = false;
@@ -28,6 +28,7 @@
#include <Aclapi.h>
#include <string>
#include "IPCWindows.h"
typedef std::wstring IPCWString;
@@ -214,6 +215,8 @@ void PipeWin::ReaderThread::ThreadFunction()
readSize_ = (unsigned) bytesRead;
@@ -20,6 +20,7 @@
// THE SOFTWARE.
//
#include "IPCWorker.h"
@@ -109,6 +110,8 @@ void IPCWorker::ThreadFunction()