MCPcopy Create free account
hub / github.com/acl-dev/acl / thread_id

Method thread_id

lib_acl_cpp/src/stdlib/thread.cpp:190–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190unsigned long thread::thread_id() const
191{
192 const_cast<thread*>(this)->wait_for_running();
193
194 if (thread_id_ == 0) {
195 logger_error("thread not running!");
196 return 0;
197 }
198
199 return thread_id_;
200}
201
202unsigned long thread::thread_self()
203{

Callers 5

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
test_threadFunction · 0.80

Calls 1

wait_for_runningMethod · 0.80

Tested by 1

test_threadFunction · 0.64