mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 20:39:33 +08:00
* winsup.api/pthread/rwlock7.c (main): Don't assume that result of rand
operation is non-zero.
This commit is contained in:
parent
05b2a10ba4
commit
1f32b7b382
@ -1,3 +1,8 @@
|
||||
2003-12-23 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* winsup.api/pthread/rwlock7.c (main): Don't assume that result of rand
|
||||
operation is non-zero.
|
||||
|
||||
2003-12-01 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* winsup.api/known_bugs.tcl: Remove fcntl09 and fcntl10. These
|
||||
|
@ -141,7 +141,8 @@ main (int argc, char *argv[])
|
||||
threads[count].thread_num = count;
|
||||
threads[count].updates = 0;
|
||||
threads[count].reads = 0;
|
||||
threads[count].interval = rand_r (&seed) % 71;
|
||||
while (!(threads[count].interval = rand_r (&seed) % 71))
|
||||
continue;
|
||||
|
||||
assert(pthread_create (&threads[count].thread_id,
|
||||
NULL, thread_routine, (void*)&threads[count]) == 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user