Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Attributes
Arc::MutexSLock Class Reference

List of all members.

Public Member Functions

 MutexSLock (Glib::Mutex &mutex, bool lock=true)
 ~MutexSLock (void)

Private Attributes

Glib::Mutex & mutex_
bool locked_

Detailed Description

Definition at line 12 of file InformationInterface.cpp.


Constructor & Destructor Documentation

Arc::MutexSLock::MutexSLock ( Glib::Mutex &  mutex,
bool  lock = true 
) [inline]

Definition at line 17 of file InformationInterface.cpp.

                                               :mutex_(mutex),locked_(false) {
    if(lock) { mutex_.lock(); locked_=true; };
  };
Arc::MutexSLock::~MutexSLock ( void  ) [inline]

Definition at line 20 of file InformationInterface.cpp.

                    {
    if(locked_) mutex_.unlock();
  };

Member Data Documentation

bool Arc::MutexSLock::locked_ [private]

Definition at line 15 of file InformationInterface.cpp.

Glib::Mutex& Arc::MutexSLock::mutex_ [private]

Definition at line 14 of file InformationInterface.cpp.


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