]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
atomic: move atomic_lock declaration from tvheadend.h to atomic.h
authorJaroslav Kysela <perex@perex.cz>
Mon, 25 May 2015 07:44:54 +0000 (09:44 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 25 May 2015 07:44:54 +0000 (09:44 +0200)
src/atomic.h
src/tvheadend.h

index 5b42407033a491715055bdb09820f0ff13bdf74e..d88d81215d1116288bfbed13abbd4b22ff840833 100644 (file)
@@ -20,6 +20,8 @@
 
 #include <stdint.h>
 
+extern pthread_mutex_t atomic_lock;
+
 static inline int
 atomic_add(volatile int *ptr, int incr)
 {
index eb547d029cf4f49216ce014d5f2626fa5957f31f..6012e0b9ab5796da8cefed22223bb41f22c248c4 100644 (file)
@@ -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;