Enabling mutex profiling caused compilation to fail.

This commit is contained in:
Brian Wellington 2001-01-05 02:17:03 +00:00
parent b9e8ad0f49
commit 6cf489f9bc
2 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: condition.c,v 1.27 2001/01/04 23:38:36 neild Exp $ */
/* $Id: condition.c,v 1.28 2001/01/05 02:17:02 bwelling Exp $ */
#include <config.h>
@ -50,7 +50,7 @@ isc_condition_waituntil(isc_condition_t *c, isc_mutex_t *m, isc_time_t *t) {
do {
#if ISC_MUTEX_PROFILE
presult = pthread_cond_timedwait(c, m->mutex, &ts);
presult = pthread_cond_timedwait(c, &m->mutex, &ts);
#else
presult = pthread_cond_timedwait(c, m, &ts);
#endif

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: condition.h,v 1.19 2001/01/04 23:38:37 neild Exp $ */
/* $Id: condition.h,v 1.20 2001/01/05 02:17:03 bwelling Exp $ */
#ifndef ISC_CONDITION_H
#define ISC_CONDITION_H 1
@ -33,7 +33,7 @@ typedef pthread_cond_t isc_condition_t;
#if ISC_MUTEX_PROFILE
#define isc_condition_wait(cp, mp) \
((pthread_cond_wait((cp), (mp->mutex)) == 0) ? \
((pthread_cond_wait((cp), &((mp)->mutex)) == 0) ? \
ISC_R_SUCCESS : ISC_R_UNEXPECTED)
#else
#define isc_condition_wait(cp, mp) \