diff options
author | rpj <rpj> | 1998-08-06 06:48:36 +0000 |
---|---|---|
committer | rpj <rpj> | 1998-08-06 06:48:36 +0000 |
commit | d744426ab4fb090632d6499c1f668b8f37abe469 (patch) | |
tree | bd8feab4b78c0faf38672b41cc58f325be4af344 | |
parent | 9513a4df26d02f1326f31bccedf9e4dc5cfe3801 (diff) |
Thu Aug 6 15:19:22 1998 Ross Johnson <rpj@swan.canberra.edu.au>
* condvar.c (pthread_cond_init): Add address-of operator & to
arg 1 of pthread_mutex_init() call.
(pthread_cond_destroy): Add address-of operator & to
arg 1 of pthread_mutex_destroy() call.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | condvar.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,10 @@ Thu Aug 6 15:19:22 1998 Ross Johnson <rpj@swan.canberra.edu.au> + * condvar.c (pthread_cond_init): Add address-of operator & to + arg 1 of pthread_mutex_init() call. + (pthread_cond_destroy): Add address-of operator & to + arg 1 of pthread_mutex_destroy() call. + * cleanup.c (_pthread_destructor_pop_all): Add (int) cast to pthread_getspecific() arg. (_pthread_destructor_pop): Add (void *) cast to "if" conditional. @@ -47,7 +47,7 @@ pthread_cond_init(pthread_cond_t *cv, const pthread_condattr_t *attr) cv->waiters_count = 0; /* Initialize the "mutex". FIXME: Check attributes arg. */ - pthread_mutex_init(cv->waiters_count_lock, NULL); + pthread_mutex_init(&cv->waiters_count_lock, NULL); /* Create an auto-reset event. */ cv->events[SIGNAL] = CreateEvent (NULL, /* no security */ @@ -198,5 +198,5 @@ pthread_cond_destroy(pthread_cond_t *cv) return EINVAL; } - return pthread_mutex_destroy(cv->waiters_count_lock); + return pthread_mutex_destroy(&cv->waiters_count_lock); } |