DABC (Data Acquisition Backbone Core)  2.9.9
Public Member Functions | Private Attributes
dabc::IntGuard Class Reference

Guard for integer value. More...

#include <dabc/threads.h>

Public Member Functions

 IntGuard (const int &value)
 
 IntGuard (const int *value)
 
int * ptr ()
 
 ~IntGuard ()
 

Private Attributes

int * fInt
 

Detailed Description

Guard for integer value.

Analog to dabc::LockGuard. Increase int value in constructor and decrease it at the time when guard is destroyed.

Definition at line 240 of file threads.h.

Constructor & Destructor Documentation

◆ IntGuard() [1/2]

dabc::IntGuard::IntGuard ( const int *  value)
inline

Definition at line 245 of file threads.h.

◆ IntGuard() [2/2]

dabc::IntGuard::IntGuard ( const int &  value)
inline

Definition at line 246 of file threads.h.

◆ ~IntGuard()

dabc::IntGuard::~IntGuard ( )
inline

Definition at line 247 of file threads.h.

Member Function Documentation

◆ ptr()

int* dabc::IntGuard::ptr ( )
inline

Definition at line 249 of file threads.h.

Field Documentation

◆ fInt

int* dabc::IntGuard::fInt
private

Definition at line 242 of file threads.h.


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