tesseract  3.05.00
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SVAutoLock Class Reference

#include <svutil.h>

Public Member Functions

 SVAutoLock (SVMutex *mutex)
 
 ~SVAutoLock ()
 

Detailed Description

Definition at line 108 of file svutil.h.

Constructor & Destructor Documentation

SVAutoLock::SVAutoLock ( SVMutex mutex)
inlineexplicit

Definition at line 110 of file svutil.h.

110 : mutex_(mutex) { mutex->Lock(); }
void Lock()
Locks on a mutex.
Definition: svutil.cpp:70
SVAutoLock::~SVAutoLock ( )
inline

Definition at line 111 of file svutil.h.

111 { mutex_->Unlock(); }
void Unlock()
Unlocks on a mutex.
Definition: svutil.cpp:78

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