MCPcopy Create free account
hub / github.com/defold/defold / New

Function New

engine/dlib/src/dlib/thread_win32.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 }
49
50 Thread New(ThreadStart thread_start, uint32_t stack_size, void* arg, const char* name)
51 {
52 DWORD thread_id;
53 HANDLE thread = CreateThread(NULL, stack_size,
54 (LPTHREAD_START_ROUTINE) thread_start,
55 arg, 0, &thread_id);
56 assert(thread);
57
58 SetThreadName((Thread)thread, name);
59
60 return thread;
61 }
62
63 void Join(Thread thread)
64 {

Callers

nothing calls this directly

Calls 2

SetThreadNameFunction · 0.70
assertFunction · 0.50

Tested by

no test coverage detected