+2005-01-21 Ezra Peisach <epeisach@mit.edu>
+
+ * k5-thread.h (k5_os_mutex_lock): Under Irix, invoke
+ k5_pthread_mutex_lock() with the k5_os_mutex, not the
+ pthread_mutex_t.
+ (k5_pthread_assert_locked,unlocked): If DEBUG_THREADS not use, provide
+ correct prototype. Add missing close paren.
+
2005-01-14 Ken Raeburn <raeburn@mit.edu>
* k5-thread.h [HAVE_PTHREAD && HAVE_PRAGMA_WEAK_REF]: Mark
return 0;
}
# define k5_os_nothread_mutex_assert_locked(M) ((void)0)
-# define k5_os_nothread_mutex_assert_unlocked(M) ((void(0)
+# define k5_os_nothread_mutex_assert_unlocked(M) ((void)0)
#endif
pthread_mutex_unlock(&(M)->p))
#else
# define k5_pthread_mutex_lock(M) pthread_mutex_lock(&(M)->p)
-static inline void k5_pthread_assert_locked(pthread_mutex_t *m) { }
+static inline void k5_pthread_assert_locked(k5_os_mutex *m) { }
# define k5_pthread_mutex_unlock(M) pthread_mutex_unlock(&(M)->p)
#endif
# define k5_os_mutex_lock(M) \
return_after_yield(K5_PTHREADS_LOADED \
- ? k5_pthread_mutex_lock(&(M)->p) \
+ ? k5_pthread_mutex_lock(M) \
: k5_os_nothread_mutex_lock(&(M)->n))
# define k5_os_mutex_unlock(M) \
(MAYBE_SCHED_YIELD(), \