Sauce-0.10.1
A C++ Dependency Injection Framework
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:
Inheritance graph
[legend]

Public Member Functions

virtual sauce::auto_ptr< LockcreateLock ()=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.

Constructor & Destructor Documentation

◆ ~LockFactory()

virtual sauce::internal::LockFactory::~LockFactory ( )
inlinevirtual
45{}

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