OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:heldBy
(Results
1 - 4
of
4
) sorted by null
/external/valgrind/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_lock_n_thread.h
155
an unlocked->locked transition. Must be sync'd with .
heldBy
:
164
WordBag*
heldBy
; /* bag of threads that hold this lock */
165
/* .
heldBy
is NULL: lock is unheld, and .heldW is meaningless
167
.
heldBy
is non-NULL:
168
.heldW is True: lock is w-held by threads in
heldBy
169
.heldW is False: lock is r-held by threads in
heldBy
170
Either way,
heldBy
may not validly be an empty Bag.
173
only have sizeTotal(
heldBy
) == 1
176
only have sizeUnique(
heldBy
) == 1
178
for LK_rdwr, w-holdings may only have sizeTotal(
heldBy
) == 1 *
[
all
...]
hg_main.c
216
lock->
heldBy
= NULL;
221
/* Release storage for a Lock. Also release storage in .
heldBy
, if
228
if (lk->
heldBy
)
229
VG_(deleteBag)( lk->
heldBy
);
263
tl_assert(lk->
heldBy
== NULL);
268
tl_assert(lk->
heldBy
!= NULL);
275
tl_assert(lk->
heldBy
== NULL); /* can't w-lock recursively */
278
lk->
heldBy
= VG_(newBag)( HG_(zalloc), "hg.lNaw.1", HG_(free) );
279
VG_(addToBag)( lk->
heldBy
, (UWord)thr );
282
if (lk->
heldBy
== NULL
[
all
...]
hg_errors.c
176
Also, acquired_at should be NULL whenever
heldBy
is, and vice
179
lkp->
heldBy
= NULL;
[
all
...]
Completed in 583 milliseconds