Some errors fixed

This commit is contained in:
Nekotekina 2014-02-27 22:25:32 +04:00
parent 8b952bf98c
commit dbdae77780
9 changed files with 456 additions and 57 deletions

View file

@ -136,11 +136,22 @@ void LogWriter::WriteToLog(std::string prefix, std::string value, std::string co
if(wxThread::IsMain())
#endif
{
while(LogBuffer.IsBusy()) wxYieldIfNeeded();
while(LogBuffer.IsBusy())
{
// need extra break condition?
wxYieldIfNeeded();
}
}
else
{
while(LogBuffer.IsBusy()) Sleep(1);
while (LogBuffer.IsBusy())
{
if (Emu.IsStopped())
{
break;
}
Sleep(1);
}
}
//if(LogBuffer.put == LogBuffer.get) LogBuffer.Flush();