MCPcopy Create free account
hub / github.com/LouisBrunner/valgrind-macos / _M_start_thread

Method _M_start_thread

drd/tests/std_thread2.cpp:55–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53namespace std
54{
55 void thread::_M_start_thread(__shared_base_type __b)
56 {
57 if (!__gthread_active_p())
58#if __EXCEPTIONS
59 throw system_error(make_error_code(errc::operation_not_permitted),
60 "Enable multithreading to use std::thread");
61#else
62 __throw_system_error(int(errc::operation_not_permitted));
63#endif
64
65 __b->_M_this_ptr = __b;
66 int __e = __gthread_create(&_M_id._M_thread, _v_execute_native_thread_routine,
67 __b.get());
68 if (__e) {
69 __b->_M_this_ptr.reset();
70 __throw_system_error(__e);
71 }
72 }
73}
74#endif

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected