tesseract  4.0.0-beta.1-59-g2cc4
SVAutoLock Class Reference

#include <svutil.h>

Public Member Functions

 SVAutoLock (SVMutex *mutex)
 
 ~SVAutoLock ()
 

Detailed Description

Definition at line 105 of file svutil.h.

Constructor & Destructor Documentation

◆ SVAutoLock()

SVAutoLock::SVAutoLock ( SVMutex mutex)
inlineexplicit

Definition at line 107 of file svutil.h.

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

◆ ~SVAutoLock()

SVAutoLock::~SVAutoLock ( )
inline

Definition at line 108 of file svutil.h.

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

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