Sauce-0.10.1: sauce::internal::LockFactory Class Reference

Sauce-0.10.1 A C++ Dependency Injection Framework

- Main Page
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
sauce::internal::LockFactory Class Referenceabstract

Facility to create opaque RAII guards, intended to be synchronization lockers. More...

`#include <sauce/internal/locker_factory.h>`

Inheritance diagram for sauce::internal::LockFactory:
[legend]

## Public Member Functions
virtual sauce::auto_ptr< Lock > | createLock ()=0

## Detailed Description

Facility to create opaque RAII guards, intended to be synchronization lockers.

Since lockers usually need access to a long-lived mutex, support for passing an opaque reference on construction is provided. RAII being what it is, ownership of the locker is passed out to the caller via an auto_ptr.

This formulation is specifically chosen to cater to boost/thread's approach to RAII lockers. Specifically, a lock_guard used with a mutex should be sufficient for all needs.

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

- sauce/internal/locker_factory.h