MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ZSTD_pthread_create

Function ZSTD_pthread_create

freebsd/contrib/zstd/lib/common/threading.c:45–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45int ZSTD_pthread_create(ZSTD_pthread_t* thread, const void* unused,
46 void* (*start_routine) (void*), void* arg)
47{
48 (void)unused;
49 thread->arg = arg;
50 thread->start_routine = start_routine;
51 thread->handle = (HANDLE) _beginthreadex(NULL, 0, worker, thread, 0, NULL);
52
53 if (!thread->handle)
54 return errno;
55 else
56 return 0;
57}
58
59int ZSTD_pthread_join(ZSTD_pthread_t thread, void **value_ptr)
60{

Callers 4

POOL_create_advancedFunction · 0.85
POOL_resize_internalFunction · 0.85
POOL_create_advancedFunction · 0.85
POOL_resize_internalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected