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/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_lock_n_thread.h
124
an unlocked->locked transition. Must be sync'd with .
heldBy
:
133
WordBag*
heldBy
; /* bag of threads that hold this lock */
134
/* .
heldBy
is NULL: lock is unheld, and .heldW is meaningless
136
.
heldBy
is non-NULL:
137
.heldW is True: lock is w-held by threads in
heldBy
138
.heldW is False: lock is r-held by threads in
heldBy
139
Either way,
heldBy
may not validly be an empty Bag.
142
only have sizeTotal(
heldBy
) == 1
145
only have sizeUnique(
heldBy
) == 1
147
for LK_rdwr, w-holdings may only have sizeTotal(
heldBy
) == 1 *
[
all
...]
hg_main.c
197
lock->
heldBy
= NULL;
203
/* Release storage for a Lock. Also release storage in .
heldBy
, if
210
if (lk->
heldBy
)
211
VG_(deleteBag)( lk->
heldBy
);
231
tl_assert(lk->
heldBy
== NULL);
236
tl_assert(lk->
heldBy
!= NULL);
243
tl_assert(lk->
heldBy
== NULL); /* can't w-lock recursively */
246
lk->
heldBy
= VG_(newBag)( HG_(zalloc), "hg.lNaw.1", HG_(free) );
247
VG_(addToBag)( lk->
heldBy
, (Word)thr );
250
if (lk->
heldBy
== NULL
[
all
...]
hg_errors.c
129
Also, acquired_at should be NULL whenever
heldBy
is, and vice
132
lkp->
heldBy
= NULL;
[
all
...]
Completed in 504 milliseconds