* winsup.api/pthread/condvar7.c (mythread): Cast
pthread_mutex_unlock argument of pthread_cleanup_push to void *, preventing a compiler warning / testsuite failure. * winsup.api/pthread/condvar9.c (mythread): Likewise. * winsup.api/pthread/rwlock7.c (main): Use ftime instead of _ftime.
This commit is contained in:
@@ -102,7 +102,7 @@ mythread(void * arg)
|
||||
#ifdef _MSC_VER
|
||||
#pragma inline_depth(0)
|
||||
#endif
|
||||
pthread_cleanup_push(pthread_mutex_unlock, (void *) &cvthing.lock);
|
||||
pthread_cleanup_push((void *) pthread_mutex_unlock, (void *) &cvthing.lock);
|
||||
|
||||
while (! (cvthing.shared > 0))
|
||||
assert(pthread_cond_timedwait(&cvthing.notbusy, &cvthing.lock, &abstime) == 0);
|
||||
|
Reference in New Issue
Block a user