24#ifndef MYSQL_CSA_LOCK_OBJECT_GUARD_H
25#define MYSQL_CSA_LOCK_OBJECT_GUARD_H
43template <
typename Type>
Scope guard to unlock an object.
Definition: lock_guard_object.h:44
bool locked
Lock flag.
Definition: lock_guard_object.h:62
void reset()
Unlocks the object if the locked flag is set and then resets the flag.
Definition: lock_guard_object.h:48
Lock_guard_object(Type *module)
Constructor.
Definition: lock_guard_object.h:56
Type * m_obj
Locked object pointer.
Definition: lock_guard_object.h:60
~Lock_guard_object()
Destructor that unlocks if not unlocked.
Definition: lock_guard_object.h:53
Common header for many mysys elements.
MediaType
Definition: media_type.h:33
Definition: channel.cpp:28
Instrumentation helpers for mutexes.
Instrumentation helpers for rwlock.