From d82a4aff2524e68ad56efca68723792296950713 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 30 Jun 2008 02:43:17 +0000 Subject: utils: pthread_{mutex,cond}_init can fail, so check for it git-svn-id: https://svn.musicpd.org/mpd/trunk@7394 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/utils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h index eb16e87bc..6a6e562cf 100644 --- a/src/utils.h +++ b/src/utils.h @@ -82,6 +82,10 @@ int set_nonblocking(int fd); void init_async_pipe(int file_des[2]); +void xpthread_mutex_init(pthread_mutex_t *m, const pthread_mutexattr_t *a); + +void xpthread_cond_init(pthread_cond_t *c, pthread_condattr_t *a); + void xpthread_mutex_destroy(pthread_mutex_t *mutex); void xpthread_cond_destroy(pthread_cond_t *cond); -- cgit v1.2.3