30 pthread_attr_t attribute;
31 pthread_attr_init(&attribute);
32 pthread_attr_setstacksize(&attribute, 1024 * 1024 * 2);
33 pthread_create(&pthread_id, &attribute,
run, (
void *)
this);
49 if (
self->node_ != -1) {
60 return pthread_join(pthread_id,
NULL) == 0;
66 catch (
const std::system_error &) {
static void * run(void *arg)
thread(function< void()> run_cb, int node=-1)
#define CCL_NAMESPACE_END
bool system_cpu_run_thread_on_node(int node)