MCPcopy Index your code
hub / github.com/git/git / pthread_create

Function pthread_create

compat/win32/pthread.c:24–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24int pthread_create(pthread_t *thread, const void *attr UNUSED,
25 void *(*start_routine)(void *), void *arg)
26{
27 thread->arg = arg;
28 thread->start_routine = start_routine;
29 thread->handle = (HANDLE)_beginthreadex(NULL, 0, win32_start_routine,
30 thread, 0, NULL);
31
32 if (!thread->handle)
33 return errno;
34 else
35 return 0;
36}
37
38int win32_pthread_join(pthread_t *thread, void **value_ptr)
39{

Callers 15

preload_indexFunction · 0.85
start_asyncFunction · 0.85
tloop_spawnwait_tasksFunction · 0.85
do_read_indexFunction · 0.85
ipc_server_init_asyncFunction · 0.85
ipc_server_init_asyncFunction · 0.85
client__multipleFunction · 0.85
do_hammerFunction · 0.85
ut_101timerFunction · 0.85
ut_201counterFunction · 0.85

Calls

no outgoing calls

Tested by 4

client__multipleFunction · 0.68
do_hammerFunction · 0.68
ut_101timerFunction · 0.68
ut_201counterFunction · 0.68