MCPcopy Create free account
hub / github.com/coin-or/CppAD / thread_number

Function thread_number

example/multi_thread/bthread/team_bthread.cpp:74–77  ·  view source on GitHub ↗

--------------------------------------------------------------------- thread_number()

Source from the content-addressed store, hash-verified

72 // ---------------------------------------------------------------------
73 // thread_number()
74 size_t thread_number(void)
75 { // return thread_all_[thread_num].thread_num
76 return *thread_num_ptr_.get();
77 }
78 // --------------------------------------------------------------------
79 // function that gets called by boost thread constructor
80 void thread_work(size_t thread_num)

Callers 2

team_workFunction · 0.70
team_destroyFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected