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 204 lock->heldBy = NULL;
209 /* Release storage for a Lock. Also release storage in .heldBy, if
216 if (lk->heldBy)
217 VG_(deleteBag)( lk->heldBy );
251 tl_assert(lk->heldBy == NULL);
256 tl_assert(lk->heldBy != NULL);
263 tl_assert(lk->heldBy == NULL); /* can't w-lock recursively */
266 lk->heldBy = VG_(newBag)( HG_(zalloc), "hg.lNaw.1", HG_(free) );
267 VG_(addToBag)( lk->heldBy, (UWord)thr );
270 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 177 Also, acquired_at should be NULL whenever heldBy is, and vice
180 lkp->heldBy = NULL;
    [all...]

Completed in 572 milliseconds