From f7111cd07afcd856c28d18ae56da0723b698f0ee Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 9 Nov 2009 07:32:33 +0000 Subject: [PATCH] fix inability to toggle between 3d cores (multithread util class couldnt restart) --- desmume/src/utils/task.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desmume/src/utils/task.cpp b/desmume/src/utils/task.cpp index 599fd0baf..d06d14ba5 100644 --- a/desmume/src/utils/task.cpp +++ b/desmume/src/utils/task.cpp @@ -103,6 +103,9 @@ void Task::Impl::taskProc() void Task::Impl::start(bool spinlock) { + bIncomingWork = false; + bWorkDone = true; + bKill = false; bStarted = true; this->spinlock = spinlock; incomingWork = CreateEvent(NULL,FALSE,FALSE,NULL);