thread = thread_alloc::thread_num()
The return value thread has prototype       size_t thread  and is the currently executing thread number.