Typedef cimba_thread_init_func

Typedef Documentation

void *() cimba_thread_init_func (void *usrarg, uint64_t tid)

Defines a prototype for an optional user-provided function to execute when initializing a pthread. The first argument is whatever the user code wants it to be. The second argument is the thread id assigned by cimba_run_experiment, an unsigned 64-bit integer in the range from 0 to the number of logical cores on the CPU minus one.