]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
threads: add untimed control cond call
authorVictor Julien <victor@inliniac.net>
Mon, 18 May 2015 16:05:11 +0000 (18:05 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 18 May 2015 16:06:36 +0000 (18:06 +0200)
The control conditions so far could only do timed waits, not normal
waits.

src/threads-arch-tile.h
src/threads-debug.h
src/threads-profile.h
src/threads.h

index a0e2fc501d0b04c8de92cb0816c20b41c10d75d3..d022d90e339f331404e670f0d190061aad8bc7c1 100644 (file)
@@ -47,6 +47,7 @@
 #define SCCtrlCondInit pthread_cond_init
 #define SCCtrlCondSignal pthread_cond_signal
 #define SCCtrlCondTimedwait pthread_cond_timedwait
+#define SCCtrlCondWait pthread_cond_wait
 #define SCCtrlCondDestroy pthread_cond_destroy
 
 /* mutex */
index 5a8b30fa631786747213d7981e7e08635b14eedc..050e305643eb8e61d85e59003f429c49b152ffef 100644 (file)
 #define SCCtrlCondInit pthread_cond_init
 #define SCCtrlCondSignal pthread_cond_signal
 #define SCCtrlCondTimedwait pthread_cond_timedwait
+#define SCCtrlCondWait pthread_cond_wait
 #define SCCtrlCondDestroy pthread_cond_destroy
 
 #endif
index 4adde85889b8fbda1f12f848e3fd4b2bd000bc94..6e19673b10487934cdd0c898cda9487620deeeb9 100644 (file)
@@ -212,6 +212,7 @@ extern __thread uint64_t rwr_lock_cnt;
 #define SCCtrlCondInit pthread_cond_init
 #define SCCtrlCondSignal pthread_cond_signal
 #define SCCtrlCondTimedwait pthread_cond_timedwait
+#define SCCtrlCondWait pthread_cond_wait
 #define SCCtrlCondDestroy pthread_cond_destroy
 
 #endif
index 18f1eaae9e978290557c763201367620243281e5..0a843b7ff034dcc1310999261937bcfa900dcb09 100644 (file)
@@ -153,6 +153,7 @@ enum {
 #define SCCtrlCondInit pthread_cond_init
 #define SCCtrlCondSignal pthread_cond_signal
 #define SCCtrlCondTimedwait pthread_cond_timedwait
+#define SCCtrlCondWait pthread_cond_wait
 #define SCCtrlCondDestroy pthread_cond_destroy
 
 /* spinlocks */