summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index c49efb3388..9456f4992f 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -671,7 +671,7 @@ thread_timer(void *dummy)
struct timespec ts;
pthread_mutex_t lock;
- pthread_mutex_initializer(&lock, 0);
+ pthread_mutex_init(&lock, 0);
pthread_mutex_lock(&lock);
#define WAIT_FOR_10MS() (pthread_cond_timedwait(&timer_thread_cond, &lock, get_ts(&ts, PER_NANO/100)) == ETIMEDOUT)
while (WAIT_FOR_10MS()) {