tesseract 4.1.1
Loading...
Searching...
No Matches
SVAutoLock Class Reference

#include <svutil.h>

Public Member Functions

 SVAutoLock (SVMutex *mutex)
 
 ~SVAutoLock ()
 

Detailed Description

Definition at line 86 of file svutil.h.

Constructor & Destructor Documentation

◆ SVAutoLock()

SVAutoLock::SVAutoLock ( SVMutex mutex)
inlineexplicit

Definition at line 88 of file svutil.h.

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

◆ ~SVAutoLock()

SVAutoLock::~SVAutoLock ( )
inline

Definition at line 89 of file svutil.h.

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

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