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_write" method. This only works if the resource has a method
void release_write();
Definition at line 186 of file auto_release.h.
Public Member Functions | |
NORET | auto_release_w_t (T &t) |
NORET | ~auto_release_w_t () |
void | release_disable () |
void | disable () |