• Home
  • Raw
  • Download

Lines Matching refs:cvi

2284       CVInfo* cvi = HG_(zalloc)("hg.mctCloa.1", sizeof(CVInfo));  in map_cond_to_CVInfo_lookup_or_alloc()  local
2285 cvi->so = so; in map_cond_to_CVInfo_lookup_or_alloc()
2286 cvi->mx_ga = 0; in map_cond_to_CVInfo_lookup_or_alloc()
2287 VG_(addToFM)( map_cond_to_CVInfo, (UWord)cond, (UWord)cvi ); in map_cond_to_CVInfo_lookup_or_alloc()
2288 return cvi; in map_cond_to_CVInfo_lookup_or_alloc()
2313 CVInfo* cvi = (CVInfo*)valW; in map_cond_to_CVInfo_delete() local
2315 tl_assert(cvi); in map_cond_to_CVInfo_delete()
2316 tl_assert(cvi->so); in map_cond_to_CVInfo_delete()
2317 if (cvi->nWaiters > 0) { in map_cond_to_CVInfo_delete()
2327 libhb_so_dealloc(cvi->so); in map_cond_to_CVInfo_delete()
2328 cvi->mx_ga = 0; in map_cond_to_CVInfo_delete()
2329 HG_(free)(cvi); in map_cond_to_CVInfo_delete()
2351 CVInfo* cvi; in evh__HG_PTHREAD_COND_SIGNAL_PRE() local
2361 cvi = map_cond_to_CVInfo_lookup_or_alloc( cond ); in evh__HG_PTHREAD_COND_SIGNAL_PRE()
2362 tl_assert(cvi); in evh__HG_PTHREAD_COND_SIGNAL_PRE()
2363 tl_assert(cvi->so); in evh__HG_PTHREAD_COND_SIGNAL_PRE()
2387 if (cvi->mx_ga != 0) { in evh__HG_PTHREAD_COND_SIGNAL_PRE()
2388 lk = map_locks_maybe_lookup( (Addr)cvi->mx_ga ); in evh__HG_PTHREAD_COND_SIGNAL_PRE()
2418 libhb_so_send( thr->hbthr, cvi->so, True/*strong_send*/ ); in evh__HG_PTHREAD_COND_SIGNAL_PRE()
2429 CVInfo* cvi; in evh__HG_PTHREAD_COND_WAIT_PRE() local
2472 cvi = map_cond_to_CVInfo_lookup_or_alloc(cond); in evh__HG_PTHREAD_COND_WAIT_PRE()
2473 tl_assert(cvi); in evh__HG_PTHREAD_COND_WAIT_PRE()
2474 tl_assert(cvi->so); in evh__HG_PTHREAD_COND_WAIT_PRE()
2475 if (cvi->nWaiters == 0) { in evh__HG_PTHREAD_COND_WAIT_PRE()
2477 cvi->mx_ga = mutex; in evh__HG_PTHREAD_COND_WAIT_PRE()
2480 if (cvi->mx_ga != mutex) { in evh__HG_PTHREAD_COND_WAIT_PRE()
2485 cvi->nWaiters++; in evh__HG_PTHREAD_COND_WAIT_PRE()
2498 CVInfo* cvi; in evh__HG_PTHREAD_COND_WAIT_POST() local
2510 cvi = map_cond_to_CVInfo_lookup_NO_alloc( cond ); in evh__HG_PTHREAD_COND_WAIT_POST()
2511 if (!cvi) { in evh__HG_PTHREAD_COND_WAIT_POST()
2521 tl_assert(cvi); in evh__HG_PTHREAD_COND_WAIT_POST()
2522 tl_assert(cvi->so); in evh__HG_PTHREAD_COND_WAIT_POST()
2523 tl_assert(cvi->nWaiters > 0); in evh__HG_PTHREAD_COND_WAIT_POST()
2525 if (!timeout && !libhb_so_everSent(cvi->so)) { in evh__HG_PTHREAD_COND_WAIT_POST()
2535 libhb_so_recv( thr->hbthr, cvi->so, True/*strong_recv*/ ); in evh__HG_PTHREAD_COND_WAIT_POST()
2537 cvi->nWaiters--; in evh__HG_PTHREAD_COND_WAIT_POST()
2543 CVInfo* cvi; in evh__HG_PTHREAD_COND_INIT_POST() local
2550 cvi = map_cond_to_CVInfo_lookup_or_alloc( cond ); in evh__HG_PTHREAD_COND_INIT_POST()
2551 tl_assert (cvi); in evh__HG_PTHREAD_COND_INIT_POST()
2552 tl_assert (cvi->so); in evh__HG_PTHREAD_COND_INIT_POST()