MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / start_thread

Function start_thread

extra/yassl/testsuite/testsuite.cpp:119–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117
118
119void start_thread(THREAD_FUNC fun, func_args* args, THREAD_TYPE* thread)
120{
121#ifndef _POSIX_THREADS
122 *thread = (HANDLE)_beginthreadex(0, 0, fun, args, 0, 0);
123#else
124 pthread_create(thread, 0, fun, args);
125#endif
126}
127
128
129void join_thread(THREAD_TYPE thread)

Callers 1

mainFunction · 0.85

Calls 1

pthread_createFunction · 0.85

Tested by

no test coverage detected