paludis  Version 1.4.2
Public Member Functions | List of all members
paludis::TryLock Class Reference

#include <mutex.hh>

Public Member Functions

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

Basic operations

 TryLock (Mutex &)
 ~TryLock ()

Detailed Description

A RAII trylock for a Mutex.

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


Member Function Documentation

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

Did the lock succeed?

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