Searched refs:heldBy (Results 1 - 4 of 4) sorted by relevance

/external/valgrind/main/helgrind/
H A Dhg_lock_n_thread.c74 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))
H A Dhg_main.c200 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
[all...]
H A Dhg_lock_n_thread.h132 an unlocked->locked transition. Must be sync'd with .heldBy:
141 WordBag* heldBy; /* bag of threads that hold this lock */ member in struct:_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)
[all...]
H A Dhg_errors.c175 Also, acquired_at should be NULL whenever heldBy is, and vice
178 lkp->heldBy = NULL;

Completed in 146 milliseconds