MCPcopy Create free account
hub / github.com/davisking/dlib / thread_starter

Function thread_starter

dlib/threads/threads_kernel_2.cpp:28–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 // -----------------------------------------------------------------------------------
27
28 void* thread_starter (
29 void* param
30 )
31 {
32 info* alloc_p = static_cast<info*>(param);
33 info p = *alloc_p;
34 delete alloc_p;
35
36 // detach self
37 pthread_detach(pthread_self());
38
39 p.funct(p.param);
40 return 0;
41 }
42
43 // -----------------------------------------------------------------------------------
44

Callers

nothing calls this directly

Calls 1

functMethod · 0.45

Tested by

no test coverage detected