From 5037ea93f3727a8689acb0df4d067f9a6d9aab1d Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 18 May 2015 18:05:11 +0200 Subject: [PATCH] threads: add untimed control cond call The control conditions so far could only do timed waits, not normal waits. --- src/threads-arch-tile.h | 1 + src/threads-debug.h | 1 + src/threads-profile.h | 1 + src/threads.h | 1 + 4 files changed, 4 insertions(+) diff --git a/src/threads-arch-tile.h b/src/threads-arch-tile.h index a0e2fc501d..d022d90e33 100644 --- a/src/threads-arch-tile.h +++ b/src/threads-arch-tile.h @@ -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 */ diff --git a/src/threads-debug.h b/src/threads-debug.h index 5a8b30fa63..050e305643 100644 --- a/src/threads-debug.h +++ b/src/threads-debug.h @@ -383,6 +383,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 #endif diff --git a/src/threads-profile.h b/src/threads-profile.h index 4adde85889..6e19673b10 100644 --- a/src/threads-profile.h +++ b/src/threads-profile.h @@ -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 diff --git a/src/threads.h b/src/threads.h index 18f1eaae9e..0a843b7ff0 100644 --- a/src/threads.h +++ b/src/threads.h @@ -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 */