diff options
-rw-r--r-- | tests/reuse2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/reuse2.c b/tests/reuse2.c index e573a31..97d2079 100644 --- a/tests/reuse2.c +++ b/tests/reuse2.c @@ -126,7 +126,7 @@ main() assert(pthread_create(&t[i], &attr, func, NULL) == 0); } - while (NUMTHREADS > done) + while (NUMTHREADS > InterlockedExchangeAdd((LPLONG)&done, 0L)) Sleep(100); Sleep(100); |