MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / thd_create

Function thd_create

deps/memkind/src/jemalloc/test/src/thd.c:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3#ifdef _WIN32
4void
5thd_create(thd_t *thd, void *(*proc)(void *), void *arg) {
6 LPTHREAD_START_ROUTINE routine = (LPTHREAD_START_ROUTINE)proc;
7 *thd = CreateThread(NULL, 0, routine, arg, 0, NULL);
8 if (*thd == NULL) {
9 test_fail("Error in CreateThread()\n");
10 }
11}
12
13void
14thd_join(thd_t thd, void **ret) {

Callers 13

thread_arena.cFile · 0.50
MALLOCX_ARENA.cFile · 0.50
TEST_BEGINFunction · 0.50
TEST_BEGINFunction · 0.50
mtx.cFile · 0.50
prof_thread_name.cFile · 0.50
TEST_BEGINFunction · 0.50
tsd.cFile · 0.50
retained.cFile · 0.50
mq.cFile · 0.50
prof_accum.cFile · 0.50
prof_reset.cFile · 0.50

Calls 2

test_failFunction · 0.70
pthread_createFunction · 0.50

Tested by

no test coverage detected