Skip to content

Commit

Permalink
ide/Debugger(Valgrind): Work around for IDE taking up 100% CPU
Browse files Browse the repository at this point in the history
- Sleeping 50 ms
- TODO: Better fix?
  • Loading branch information
jerstlouis committed Sep 2, 2018
1 parent 5e827d3 commit 7700cf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ide/src/debugger/Debugger.ec
Expand Up @@ -4272,6 +4272,7 @@ class ValgrindLogThread : Thread
{
int result = 0;
app.Unlock();
Sleep(0.05);
if(vgLogFile)
result = (int)vgLogFile.Read(output, 1, sizeof(output));
app.Lock();
Expand Down

0 comments on commit 7700cf5

Please sign in to comment.