LibreOffice Module framework (master) 1
Public Member Functions | Private Attributes | List of all members
framework::Gate Class Reference

#include <gate.hxx>

Public Member Functions

 Gate ()
 
 ~Gate ()
 
 Gate (const Gate &)=delete
 
Gateoperator= (const Gate &)=delete
 
void open ()
 
void close ()
 
void wait ()
 

Private Attributes

std::mutex m_aAccessLock
 
::osl::Condition m_aPassage
 
bool m_bClosed
 

Detailed Description

Definition at line 37 of file gate.hxx.

Constructor & Destructor Documentation

◆ Gate() [1/2]

framework::Gate::Gate ( )
inline

Definition at line 48 of file gate.hxx.

References open().

◆ ~Gate()

framework::Gate::~Gate ( )
inline

Definition at line 60 of file gate.hxx.

References open().

◆ Gate() [2/2]

framework::Gate::Gate ( const Gate )
delete

Member Function Documentation

◆ close()

void framework::Gate::close ( )
inline

Definition at line 98 of file gate.hxx.

References m_aAccessLock, m_aPassage, and m_bClosed.

Referenced by framework::TransactionManager::registerTransaction().

◆ open()

void framework::Gate::open ( )
inline

◆ operator=()

Gate & framework::Gate::operator= ( const Gate )
delete

◆ wait()

void framework::Gate::wait ( )
inline

Definition at line 118 of file gate.hxx.

References m_aAccessLock, m_aPassage, and m_bClosed.

Referenced by framework::TransactionManager::setWorkingMode().

Member Data Documentation

◆ m_aAccessLock

std::mutex framework::Gate::m_aAccessLock
private

Definition at line 138 of file gate.hxx.

Referenced by close(), open(), and wait().

◆ m_aPassage

::osl::Condition framework::Gate::m_aPassage
private

Definition at line 139 of file gate.hxx.

Referenced by close(), open(), and wait().

◆ m_bClosed

bool framework::Gate::m_bClosed
private

Definition at line 140 of file gate.hxx.

Referenced by close(), open(), and wait().


The documentation for this class was generated from the following file: