MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / detach

Method detach

benchmarks/tbb/tbb_thread.cpp:77–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void tbb_thread_v3::detach() {
78 if (!joinable())
79 handle_perror( EINVAL, "tbb_thread::detach" ); // Invalid argument
80#if _WIN32||_WIN64
81 BOOL status = CloseHandle( my_handle );
82 if ( status == 0 )
83 handle_win_error( GetLastError() );
84 my_thread_id = 0;
85#else
86 int status = pthread_detach( my_handle );
87 if( status )
88 handle_perror( status, "pthread_detach" );
89#endif // _WIN32||_WIN64
90 my_handle = 0;
91}
92
93void tbb_thread_v3::internal_start( __TBB_NATIVE_THREAD_ROUTINE_PTR(start_routine),
94 void* closure ) {

Callers 3

move_v3Function · 0.45
processMethod · 0.45
nested_arena_entryMethod · 0.45

Calls 3

handle_perrorFunction · 0.85
handle_win_errorFunction · 0.85
GetLastErrorFunction · 0.85

Tested by

no test coverage detected