class ThreadLockState

Defined at line 80 of file ../../zircon/system/ulib/lockdep/include/lockdep/thread_lock_state.h

Tracks the locks held by a thread and updates accounting during acquire and

release operations.

Public Methods

void ThreadLockState ()

Defined at line 82 of file ../../zircon/system/ulib/lockdep/include/lockdep/thread_lock_state.h

void ~ThreadLockState ()

Defined at line 83 of file ../../zircon/system/ulib/lockdep/include/lockdep/thread_lock_state.h

void ThreadLockState (const ThreadLockState & )

Defined at line 85 of file ../../zircon/system/ulib/lockdep/include/lockdep/thread_lock_state.h

ThreadLockState & operator= (const ThreadLockState & )

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

ThreadLockState * Get (LockFlags lock_flags)

Returns the ThreadLockState instance for the current thread.

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

void Acquire (AcquiredLockEntry * lock_entry)

Attempts to add the given lock class to the acquired lock list. Lock

ordering and other checks are performed here.

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

void Release (AcquiredLockEntry * entry)

Removes the given lock entry from the acquired lock list.

Defined at line 171 of file ../../zircon/system/ulib/lockdep/include/lockdep/thread_lock_state.h

void AssertNoLocksHeld ()

Defined at line 182 of file ../../zircon/system/ulib/lockdep/include/lockdep/thread_lock_state.h

LockResult last_result ()

Returns result of the last Acquire operation for testing.

Defined at line 191 of file ../../zircon/system/ulib/lockdep/include/lockdep/thread_lock_state.h

bool reporting_disabled ()

Defined at line 193 of file ../../zircon/system/ulib/lockdep/include/lockdep/thread_lock_state.h

Friends

void ThreadLockState (AcquiredLockEntry * )
void ThreadLockState (ThreadLockState * )
ThreadLockState * ThreadLockState ()