Searched refs:newcond (Results 1 – 2 of 2) sorted by relevance
/external/compiler-rt/lib/tsan/dd/ |
D | dd_interceptors.cc | 167 void *newcond = malloc(sizeof(pthread_cond_t)); in init_cond() local 168 internal_memset(newcond, 0, sizeof(pthread_cond_t)); in init_cond() 169 if (atomic_compare_exchange_strong(p, &cond, (uptr)newcond, in init_cond() 171 return (pthread_cond_t*)newcond; in init_cond() 172 free(newcond); in init_cond()
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_interceptors.cc | 1008 void *newcond = WRAP(malloc)(pthread_cond_t_sz); in init_cond() local 1009 internal_memset(newcond, 0, pthread_cond_t_sz); in init_cond() 1010 if (atomic_compare_exchange_strong(p, &cond, (uptr)newcond, in init_cond() 1012 return newcond; in init_cond() 1013 WRAP(free)(newcond); in init_cond()
|