template <typename Class, typename LockType_, LockFlags Flags = LockFlagsNone>
class SingletonLockDep
Defined at line 347 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class.h
Singleton version of the lock wrapper above. This type is appropriate for
global locks. This type is used by the macros LOCK_DEP_SINGLETON_LOCK and
LOCK_DEP_SINGLETON_LOCK_WRAPPER to define instrumented global locks.
Public Methods
Class * Get ()
Returns a pointer to the singleton object.
Defined at line 356 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class.h
Protected Methods
template <typename... Args>
void SingletonLockDep<Class, LockType_, Flags> (Args &&... args)
Initializes the base Lock
<LockType
> with lock class id for this lock. The
additional arguments are pass to the underlying lock.
Defined at line 362 of file ../../zircon/system/ulib/lockdep/include/lockdep/lock_class.h