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

Function ZSTD_pthread_cond_init

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

Source from the content-addressed store, hash-verified

101}
102
103int ZSTD_pthread_cond_init(ZSTD_pthread_cond_t* cond, pthread_condattr_t const* attr)
104{
105 *cond = (pthread_cond_t*)ZSTD_malloc(sizeof(pthread_cond_t));
106 if (!*cond)
107 return 1;
108 return pthread_cond_init(*cond, attr);
109}
110
111int ZSTD_pthread_cond_destroy(ZSTD_pthread_cond_t* cond)
112{

Callers 5

POOL_create_advancedFunction · 0.85
POOL_create_advancedFunction · 0.85
ZSTDMT_serialState_initFunction · 0.85
ZSTDMT_createJobsTableFunction · 0.85
COVER_best_initFunction · 0.85

Calls 1

ZSTD_mallocFunction · 0.85

Tested by

no test coverage detected