auto_release_r_t< T > Class Template Reference

List of all members.

Detailed Description

template<class T>
class auto_release_r_t< T >

Template class that, upon destruction, releases a read-write lock held for read.

This template class is an analog of auto_ptr<T> from the C++ standard template library, but rather than freeing a heap object, it releases a lock (thread-synchronization primitive, not a database lock) by calling the lock's "release_read" method. This only works if the resource has a method

 void release_read();

See also:
auto_release_w_t<>

Definition at line 140 of file auto_release.h.

Public Member Functions

NORET auto_release_r_t (T &t)
NORET ~auto_release_r_t ()


The documentation for this class was generated from the following file:
Generated on Wed Jul 7 17:22:42 2010 for Shore Storage Manager by  doxygen 1.4.7