Skip to content

Commit

Permalink
Fixed random sleep time for test_synch_barrier_thread
Browse files Browse the repository at this point in the history
  • Loading branch information
akallabeth committed May 31, 2021
1 parent d4b3267 commit a2930c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winpr/libwinpr/synch/test/TestSynchBarrier.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a2930c0

Please sign in to comment.