ldas-tools-al 2.6.4
Classes | Public Types | Static Public Member Functions | Private Types | Static Private Attributes | List of all members
LDASTools::AL::IOLock Class Reference

Class to coordinate writing of streams. More...

#include <IOLock.hh>

Collaboration diagram for LDASTools::AL::IOLock:
Collaboration graph
[legend]

Classes

struct  lock_set
 

Public Types

typedef MutexLock::baton_type baton_type
 

Static Public Member Functions

static baton_type GetKey (const std::ostream &Stream)
 Obtain the lock for a stream. More...
 

Private Types

typedef std::list< lock_set * > keys_ostream_type
 

Static Private Attributes

static baton_type m_key_ostream
 
static keys_ostream_type m_keys_ostream
 

Detailed Description

Class to coordinate writing of streams.

This class allows multithreaded applications to share a stream when threads cooperate.

Member Typedef Documentation

◆ baton_type

◆ keys_ostream_type

typedef std::list< lock_set* > LDASTools::AL::IOLock::keys_ostream_type
private

Member Function Documentation

◆ GetKey()

MutexLock::baton_type LDASTools::AL::IOLock::GetKey ( const std::ostream &  Stream)
static

Obtain the lock for a stream.

Member Data Documentation

◆ m_key_ostream

IOLock::baton_type LDASTools::AL::IOLock::m_key_ostream
staticprivate

◆ m_keys_ostream

IOLock::keys_ostream_type LDASTools::AL::IOLock::m_keys_ostream
staticprivate

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