fixed an issue where the CPU sometimes single-steps an extra time after pausing

This commit is contained in:
nitsuja committed 2012-01-04 01:33:38 -08:00
1 parent ced8ca7219
commit 81a1efab8e
2 files changed
+8

No files matched your search

+7
View File
@@ -72,6 +72,13 @@ public:
is_set = false;
}
void Reset()
{
std::unique_lock<std::mutex> lk(m_mutex);
// no other action required, since wait loops on the predicate and any lingering signal will get cleared on the first iteration
is_set = false;
}
private:
class IsSet
{