summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunyan He <junyan.he@intel.com>2016-04-22 17:59:07 +0800
committerJunyan He <junyan.he@intel.com>2016-04-22 17:59:07 +0800
commiteeae92e76a9c4d12c09f7c749c355f4b7d156619 (patch)
treeb1e2a06864d155dc6d691a971ba99429446cefa4
parentcc89ee2e688601b97e280bf0edd75e2eda80fbd2 (diff)
mutex
-rw-r--r--libclapi/cl_mutex.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/libclapi/cl_mutex.h b/libclapi/cl_mutex.h
index b22484b1..561d686b 100644
--- a/libclapi/cl_mutex.h
+++ b/libclapi/cl_mutex.h
@@ -57,9 +57,10 @@ void cl_mutex_report(void);
#define CL_MUTEX_REPORT()
#endif /* End of CL_DEBUG_MUTEX */
-#define PTHREAD_MUTEX_INIT(mutex) pthread_mutex_init(mutex, NULL)
-#define PTHREAD_COND_INIT(cond) pthread_cond_init(cond, NULL)
-#define PTHREAD_MUTEX_DESTROY(mutex) pthread_mutex_destroy(mutex)
-#define PTHREAD_COND_DESTROY(cond) pthread_cond_destroy(cond)
+#define CL_MUTEX_INIT(mutex) pthread_mutex_init(mutex, NULL)
+#define CL_COND_INIT(cond) pthread_cond_init(cond, NULL)
+#define CL_MUTEX_DESTROY(mutex) pthread_mutex_destroy(mutex)
+#define CL_COND_DESTROY(cond) pthread_cond_destroy(cond)
+#define CL_COND_BROADCAST(cond) pthread_cond_broadcast(cond)
#endif /* __CL_MUTEX_H__ */