diff options
| author | rpj <rpj> | 2011-05-06 01:12:32 +0000 | 
|---|---|---|
| committer | rpj <rpj> | 2011-05-06 01:12:32 +0000 | 
| commit | fb8dc549cc1d81e0a2f7b5461017d61a46e990ff (patch) | |
| tree | fd7f179b1abaa525ec55e34bef23b12f8fd89021 /tests/rwlock6.c | |
| parent | 6da8aa318643f8d091cc674848b99073db19400e (diff) | |
*** empty log message ***ROBUST_MUTEXES_merged_to_trunkROBUST_MUTEXES
Diffstat (limited to 'tests/rwlock6.c')
| -rw-r--r-- | tests/rwlock6.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/tests/rwlock6.c b/tests/rwlock6.c index 0ac6b27..f667ce5 100644 --- a/tests/rwlock6.c +++ b/tests/rwlock6.c @@ -52,7 +52,7 @@ void * wrfunc(void * arg)    int ba;    assert(pthread_rwlock_wrlock(&rwlock1) == 0); -  Sleep(2000); +  Sleep(200);    bankAccount += 10;    ba = bankAccount;    assert(pthread_rwlock_unlock(&rwlock1) == 0); @@ -84,9 +84,9 @@ main()    bankAccount = 0;    assert(pthread_create(&wrt1, NULL, wrfunc, NULL) == 0); -  Sleep(500); +  Sleep(50);    assert(pthread_create(&rdt, NULL, rdfunc, NULL) == 0); -  Sleep(500); +  Sleep(50);    assert(pthread_create(&wrt2, NULL, wrfunc, NULL) == 0);    assert(pthread_join(wrt1, &wr1Result) == 0); | 
