sfLock Class Reference

sfLock is an exception-safe automatic wrapper for locking and unlocking mutexes More...

#include <Lock.hpp>

Inheritance diagram for sfLock:

sfNonCopyable List of all members.

Public Member Functions

 sfLock (sfMutex &Mutex)
 Construct the lock with a target mutex (lock it).
 ~sfLock ()
 Destructor (unlocks the mutex).

Detailed Description

sfLock is an exception-safe automatic wrapper for locking and unlocking mutexes

Definition at line 40 of file Lock.hpp.


Constructor & Destructor Documentation

sfLock::sfLock ( sfMutex Mutex  ) 

Construct the lock with a target mutex (lock it).

Parameters:
Mutex : Mutex to lock

Definition at line 35 of file Lock.cpp.

sfLock::~sfLock (  ) 

Destructor (unlocks the mutex).

Definition at line 45 of file Lock.cpp.


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