Lines Matching refs:cvi
2282 CVInfo* cvi = HG_(zalloc)("hg.mctCloa.1", sizeof(CVInfo)); in map_cond_to_CVInfo_lookup_or_alloc() local
2283 cvi->so = so; in map_cond_to_CVInfo_lookup_or_alloc()
2284 cvi->mx_ga = 0; in map_cond_to_CVInfo_lookup_or_alloc()
2285 VG_(addToFM)( map_cond_to_CVInfo, (UWord)cond, (UWord)cvi ); in map_cond_to_CVInfo_lookup_or_alloc()
2286 return cvi; in map_cond_to_CVInfo_lookup_or_alloc()
2311 CVInfo* cvi = (CVInfo*)valW; in map_cond_to_CVInfo_delete() local
2313 tl_assert(cvi); in map_cond_to_CVInfo_delete()
2314 tl_assert(cvi->so); in map_cond_to_CVInfo_delete()
2315 if (cvi->nWaiters > 0) { in map_cond_to_CVInfo_delete()
2325 libhb_so_dealloc(cvi->so); in map_cond_to_CVInfo_delete()
2326 cvi->mx_ga = 0; in map_cond_to_CVInfo_delete()
2327 HG_(free)(cvi); in map_cond_to_CVInfo_delete()
2349 CVInfo* cvi; in evh__HG_PTHREAD_COND_SIGNAL_PRE() local
2359 cvi = map_cond_to_CVInfo_lookup_or_alloc( cond ); in evh__HG_PTHREAD_COND_SIGNAL_PRE()
2360 tl_assert(cvi); in evh__HG_PTHREAD_COND_SIGNAL_PRE()
2361 tl_assert(cvi->so); in evh__HG_PTHREAD_COND_SIGNAL_PRE()
2385 if (cvi->mx_ga != 0) { in evh__HG_PTHREAD_COND_SIGNAL_PRE()
2386 lk = map_locks_maybe_lookup( (Addr)cvi->mx_ga ); in evh__HG_PTHREAD_COND_SIGNAL_PRE()
2416 libhb_so_send( thr->hbthr, cvi->so, True/*strong_send*/ ); in evh__HG_PTHREAD_COND_SIGNAL_PRE()
2427 CVInfo* cvi; in evh__HG_PTHREAD_COND_WAIT_PRE() local
2470 cvi = map_cond_to_CVInfo_lookup_or_alloc(cond); in evh__HG_PTHREAD_COND_WAIT_PRE()
2471 tl_assert(cvi); in evh__HG_PTHREAD_COND_WAIT_PRE()
2472 tl_assert(cvi->so); in evh__HG_PTHREAD_COND_WAIT_PRE()
2473 if (cvi->nWaiters == 0) { in evh__HG_PTHREAD_COND_WAIT_PRE()
2475 cvi->mx_ga = mutex; in evh__HG_PTHREAD_COND_WAIT_PRE()
2478 if (cvi->mx_ga != mutex) { in evh__HG_PTHREAD_COND_WAIT_PRE()
2483 cvi->nWaiters++; in evh__HG_PTHREAD_COND_WAIT_PRE()
2496 CVInfo* cvi; in evh__HG_PTHREAD_COND_WAIT_POST() local
2508 cvi = map_cond_to_CVInfo_lookup_NO_alloc( cond ); in evh__HG_PTHREAD_COND_WAIT_POST()
2509 if (!cvi) { in evh__HG_PTHREAD_COND_WAIT_POST()
2519 tl_assert(cvi); in evh__HG_PTHREAD_COND_WAIT_POST()
2520 tl_assert(cvi->so); in evh__HG_PTHREAD_COND_WAIT_POST()
2521 tl_assert(cvi->nWaiters > 0); in evh__HG_PTHREAD_COND_WAIT_POST()
2523 if (!timeout && !libhb_so_everSent(cvi->so)) { in evh__HG_PTHREAD_COND_WAIT_POST()
2533 libhb_so_recv( thr->hbthr, cvi->so, True/*strong_recv*/ ); in evh__HG_PTHREAD_COND_WAIT_POST()
2535 cvi->nWaiters--; in evh__HG_PTHREAD_COND_WAIT_POST()
2541 CVInfo* cvi; in evh__HG_PTHREAD_COND_INIT_POST() local
2548 cvi = map_cond_to_CVInfo_lookup_or_alloc( cond ); in evh__HG_PTHREAD_COND_INIT_POST()
2549 tl_assert (cvi); in evh__HG_PTHREAD_COND_INIT_POST()
2550 tl_assert (cvi->so); in evh__HG_PTHREAD_COND_INIT_POST()