ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Athena::ToolLock Class Reference

RAII helper for acquiring the lock of an ILockableTool. More...

#include <ILockableTool.h>

Collaboration diagram for Athena::ToolLock:

Public Member Functions

 ToolLock (ILockableTool &tool)
 Acquire the lock of tool. More...
 
 ~ToolLock ()
 Release the lock. More...
 

Private Attributes

ILockableToolm_tool
 

Detailed Description

RAII helper for acquiring the lock of an ILockableTool.

Definition at line 42 of file ILockableTool.h.

Constructor & Destructor Documentation

◆ ToolLock()

Athena::ToolLock::ToolLock ( ILockableTool tool)
inline

Acquire the lock of tool.

Definition at line 46 of file ILockableTool.h.

47  : m_tool (tool)
48  {
50  }

◆ ~ToolLock()

Athena::ToolLock::~ToolLock ( )
inline

Release the lock.

Definition at line 53 of file ILockableTool.h.

54  {
56  }

Member Data Documentation

◆ m_tool

ILockableTool& Athena::ToolLock::m_tool
private

Definition at line 60 of file ILockableTool.h.


The documentation for this class was generated from the following file:
ILockableTool::lock_shared
virtual void lock_shared() const =0
Lock the tool.
Athena::ToolLock::m_tool
ILockableTool & m_tool
Definition: ILockableTool.h:60
ILockableTool::unlock_shared
virtual void unlock_shared() const =0
Unlock the tool.
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453