MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / skr_init_thread

Function skr_init_thread

modules/core/base/src/SkrOS/apple/thread.c:241–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void skr_init_thread(SThreadDesc* pData, SThreadHandle* pHandle)
242{
243 int res = pthread_create(pHandle, NULL, ThreadFunctionStatic, pData);
244 skr_thread_set_priority(*pHandle, SKR_THREAD_NORMAL);
245 SKR_UNREF_PARAM(res);
246 SKR_ASSERT(res == 0);
247}
248
249SThreadHandle skr_get_current_thread()
250{

Callers 7

startMethod · 0.50
startMethod · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls 1

skr_thread_set_priorityFunction · 0.70

Tested by

no test coverage detected