mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix misuses of cond.wait (should return true when you want to stop waiting!)
This commit is contained in:
1 parent
5b20ace502
commit
bde54ccdc0
3 files changed
+13
-8
No files matched your search
@@ -1,3 +1,5 @@
|
||||
#include <thread>
|
||||
|
||||
#include "Common/Log.h"
|
||||
#include "Common/TimeUtil.h"
|
||||
#include "Common/Thread/Barrier.h"
|
||||
@@ -62,7 +64,7 @@ bool TestParallelLoop(ThreadManager *threadMan) {
|
||||
|
||||
// This is some ugly stuff but realistic.
|
||||
const size_t THREAD_COUNT = 6; // Must match the number of threads in TestMultithreadedScheduling
|
||||
const size_t ITERATIONS = 1000;
|
||||
const size_t ITERATIONS = 40000;
|
||||
|
||||
static std::atomic<int> g_atomicCounter;
|
||||
static ThreadManager *g_threadMan;
|
||||
|
||||
Reference in new issue
Block a user