tesseract  4.00.00dev
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::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::~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: