tesseract  4.0.0-1-g2a2b
SVAutoLock Class Reference

#include <svutil.h>

Public Member Functions

 SVAutoLock (SVMutex *mutex)
 
 ~SVAutoLock ()
 

Detailed Description

Definition at line 96 of file svutil.h.

Constructor & Destructor Documentation

◆ SVAutoLock()

SVAutoLock::SVAutoLock ( SVMutex mutex)
inlineexplicit

Definition at line 98 of file svutil.h.

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

◆ ~SVAutoLock()

SVAutoLock::~SVAutoLock ( )
inline

Definition at line 99 of file svutil.h.

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

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