17 #ifndef __UTIL_THREAD_H__
18 #define __UTIL_THREAD_H__
20 #include <condition_variable>
34 #include <tbb/spin_mutex.h>
51 thread(
function<
void()> run_cb,
int node = -1);
54 static void *
run(
void *arg);
~thread_scoped_spin_lock()
thread_scoped_spin_lock(thread_spin_lock &lock)
static void * run(void *arg)
thread(function< void()> run_cb, int node=-1)
function< void()> run_cb_
#define CCL_NAMESPACE_END
std::unique_lock< std::mutex > thread_scoped_lock
CCL_NAMESPACE_BEGIN typedef std::mutex thread_mutex
tbb::spin_mutex thread_spin_lock
std::condition_variable thread_condition_variable