MCPcopy Create free account
hub / github.com/a2flo/floor / start

Method start

threading/thread_base.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void thread_base::start() {
39 if(thread_status != THREAD_STATUS::INIT) {
40 // something is wrong, return (thread status must be init!)
41 cout << "ERROR: thread error: thread status must be INIT before starting the thread!" << endl;
42 return;
43 }
44
45 thread_status = THREAD_STATUS::RUNNING;
46 this->unlock();
47}
48
49void thread_base::restart() {
50 this->lock();

Callers 2

http_netMethod · 0.45
netMethod · 0.45

Calls 1

unlockMethod · 0.95

Tested by

no test coverage detected