Fixed random sleep time for test_synch_barrier_thread

This commit is contained in:
Armin Novak 2021-05-31 12:29:16 +02:00
parent d4b3267860
commit a2930c04c3

View File

@ -44,7 +44,7 @@ static DWORD WINAPI test_synch_barrier_thread(LPVOID lpParam)
for (i = 0; i < p->loops && gErrorCount == 0; i++)
{
/* simulate different execution times before the barrier */
Sleep(rand() % MAX_SLEEP_MS);
Sleep(1 + abs((rand() % MAX_SLEEP_MS)));
status = EnterSynchronizationBarrier(&gBarrier, p->flags);
// printf("Thread #%03u status: %s\n", tnum, status ? "TRUE" : "FALSE");