paludis::TryLock Class Reference
[Threads]

#include <mutex.hh>

List of all members.

Basic operations

 TryLock (Mutex &)
 ~TryLock ()

Public Member Functions

bool operator() () const PALUDIS_ATTRIBUTE((warn_unused_result))


Detailed Description

A RAII trylock for a Mutex.

If threading is disabled, locking is a no-op and the try always succeeds.

Since:
0.26

Member Function Documentation

bool paludis::TryLock::operator() (  )  const

Did the lock succeed?


The documentation for this class was generated from the following file:
Generated on Mon Sep 21 10:36:11 2009 for paludis by  doxygen 1.5.4