HomeSort by relevance Sort by last modified time
    Searched refs:heldBy (Results 1 - 4 of 4) sorted by null

  /external/valgrind/main/helgrind/
hg_lock_n_thread.c 74 if (lock->heldBy == NULL) {
82 /* If heldBy is non-NULL, we require it to contain at least one
84 if (VG_(isEmptyBag)(lock->heldBy))
88 if (!is_sane_Bag_of_Threads(lock->heldBy))
93 && !VG_(isSingletonTotalBag)(lock->heldBy))
hg_main.c 200 lock->heldBy = NULL;
205 /* Release storage for a Lock. Also release storage in .heldBy, if
212 if (lk->heldBy)
213 VG_(deleteBag)( lk->heldBy );
247 tl_assert(lk->heldBy == NULL);
252 tl_assert(lk->heldBy != NULL);
259 tl_assert(lk->heldBy == NULL); /* can't w-lock recursively */
262 lk->heldBy = VG_(newBag)( HG_(zalloc), "hg.lNaw.1", HG_(free) );
263 VG_(addToBag)( lk->heldBy, (Word)thr );
266 if (lk->heldBy == NULL
    [all...]
hg_lock_n_thread.h 132 an unlocked->locked transition. Must be sync'd with .heldBy:
141 WordBag* heldBy; /* bag of threads that hold this lock */
142 /* .heldBy is NULL: lock is unheld, and .heldW is meaningless
144 .heldBy is non-NULL:
145 .heldW is True: lock is w-held by threads in heldBy
146 .heldW is False: lock is r-held by threads in heldBy
147 Either way, heldBy may not validly be an empty Bag.
150 only have sizeTotal(heldBy) == 1
153 only have sizeUnique(heldBy) == 1
155 for LK_rdwr, w-holdings may only have sizeTotal(heldBy) == 1 *
    [all...]
hg_errors.c 175 Also, acquired_at should be NULL whenever heldBy is, and vice
178 lkp->heldBy = NULL;
    [all...]

Completed in 504 milliseconds