Zero  0.1.0
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
holder_search Class Reference

Finds all latches held by this thread. More...

Public Member Functions

 holder_search (latch_t const *l)
 Insert latch_holder_t for given latch if not already there. More...
 
 ~holder_search ()
 
latch_holder_toperator-> ()
 
latch_holder_tvalue ()
 

Static Public Member Functions

static holder_list::iterator find (holder_list holders, latch_t const *l)
 find holder of given latch in given list More...
 
static int count (holder_list holders, latch_t const *l)
 count # times we find a given latch in the list. For debugging, asserts. More...
 

Private Attributes

holder_list _holders
 
latch_holder_t *& _freelist
 
holder_list::iterator _end
 
holder_list::iterator _it
 

Detailed Description

Finds all latches held by this thread.

Searches a thread-local list for a latch_holder_t that is a reference to the given latch_t.

See also
latch_holder_t.

Constructor & Destructor Documentation

§ holder_search()

holder_search::holder_search ( latch_t const *  l)
inline

Insert latch_holder_t for given latch if not already there.

§ ~holder_search()

holder_search::~holder_search ( )
inline

Member Function Documentation

§ count()

static int holder_search::count ( holder_list  holders,
latch_t const *  l 
)
inlinestatic

count # times we find a given latch in the list. For debugging, asserts.

§ find()

static holder_list::iterator holder_search::find ( holder_list  holders,
latch_t const *  l 
)
inlinestatic

find holder of given latch in given list

§ operator->()

latch_holder_t* holder_search::operator-> ( )
inline

§ value()

latch_holder_t* holder_search::value ( )
inline

Member Data Documentation

§ _end

holder_list::iterator holder_search::_end
private

§ _freelist

latch_holder_t*& holder_search::_freelist
private

§ _holders

holder_list holder_search::_holders
private

§ _it

holder_list::iterator holder_search::_it
private

The documentation for this class was generated from the following file: