class ValidatorLockClassState

Defined at line 86 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

A derivative of MetadataLockClassState that provides full state necessary for

runtime lock validation. This type is used when lock validation is enabled at

compile time.

Public Methods

void ValidatorLockClassState (const fxt::InternedString & name, LockFlags flags)

Constructs an instance of ValidatorLockClassState.

Defined at line 89 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

void ValidatorLockClassState (const ValidatorLockClassState & )

Disable copy construction / assignment.

Defined at line 93 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

ValidatorLockClassState & operator= (const ValidatorLockClassState & )

Defined at line 94 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

ValidatorLockClassState * Get (LockClassId id)

Returns the ValidatorLockClassState instance for the given lock class id.

The id must be a valid lock class id. This method intentionally shadows

MetadataLockClassState::Get.

Defined at line 99 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

bool IsIrqSafe (LockClassId id)

Returns true if the given lock class is irq-safe, false otherwise.

Defined at line 105 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

bool IsNestable (LockClassId id)

Returns true if the given lock class is nestable, false otherwise.

Defined at line 108 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

bool IsMultiAcquire (LockClassId id)

Returns true if the given lock class is multi-acquire, false otherwise.

Defined at line 111 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

bool IsLeaf (LockClassId id)

Defined at line 115 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

bool IsReportingDisabled (LockClassId id)

Returns true if reporting is disabled for the given lock class, false

otherwise.

Defined at line 119 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

bool IsReAcquireFatal (LockClassId id)

Returns true if the validator should abort the program if it detects an

invalid re-acquire with this lock class.

Defined at line 125 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

bool IsActiveListDisabled (LockClassId id)

Returns true if the lock should not be added to the active lock list

during an acquire.

Defined at line 131 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

bool IsTrackingDisabled (LockClassId id)

Returns true if the lock should not be tracked.

Defined at line 136 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

bool HasLockClass (LockClassId id, LockClassId search_id)

Returns true if lock class given by |search_id| is in the dependency set of

the lock class given by |id|, false otherwise.

Defined at line 142 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

LockResult AddLockClass (LockClassId id, LockClassId add_id)

Adds the lock class given by |add_id| to the dependency set of the lock

class given by |id|.

Defined at line 148 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

LockFlags flags ()

Return the flags of this lock class.

Defined at line 153 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

Iterator Iter ()

Returns an iterator for the init-time linked list of state instances.

Defined at line 178 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

const LockDependencySet & dependency_set ()

Returns the dependency set for this lock class.

Defined at line 181 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

ValidatorLockClassState * connected_set ()

Defined at line 183 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

uint64_t index ()

Defined at line 185 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

uint64_t least ()

Defined at line 186 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

void Reset ()

Resets the dependency set and disjoint set of this object. This is

primarily used to initialize the state between successive tests.

Defined at line 190 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class_state.h

Records

Friends

class SingletonLoopDetector