7#include <condition_variable>
11#if defined(__APPLE__) || defined(__linux__) && !defined(__GLIBC__)
23#include <tbb/spin_mutex.h>
37 thread(std::function<
void()> run_cb);
40 static void *
run(
void *arg);
45#if defined(__APPLE__) || defined(__linux__) && !defined(__GLIBC__)
~thread_scoped_spin_lock()
thread_scoped_spin_lock(thread_spin_lock &lock)
std::function< void()> run_cb_
static void * run(void *arg)
thread(std::function< void()> run_cb)
#define CCL_NAMESPACE_END
std::condition_variable thread_condition_variable
tbb::spin_mutex thread_spin_lock
std::unique_lock< std::mutex > thread_scoped_lock