From d455fcf75f0d82cc7eccc865c7af52c8bcd93a8c Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 25 May 2015 09:44:54 +0200 Subject: [PATCH] atomic: move atomic_lock declaration from tvheadend.h to atomic.h --- src/atomic.h | 2 ++ src/tvheadend.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/atomic.h b/src/atomic.h index 5b4240703..d88d81215 100644 --- a/src/atomic.h +++ b/src/atomic.h @@ -20,6 +20,8 @@ #include +extern pthread_mutex_t atomic_lock; + static inline int atomic_add(volatile int *ptr, int incr) { diff --git a/src/tvheadend.h b/src/tvheadend.h index eb547d029..6012e0b9a 100644 --- a/src/tvheadend.h +++ b/src/tvheadend.h @@ -104,7 +104,6 @@ extern int tvheadend_running; extern pthread_mutex_t global_lock; extern pthread_mutex_t fork_lock; -extern pthread_mutex_t atomic_lock; extern int tvheadend_webui_port; extern int tvheadend_webui_debug; -- 2.47.2