Tesseract
3.02
|
#include <ccutil.h>
Public Member Functions | |
CCUtilMutex () | |
void | Lock () |
void | Unlock () |
tesseract::CCUtilMutex::CCUtilMutex | ( | ) |
Definition at line 27 of file ccutil.cpp.
void tesseract::CCUtilMutex::Lock | ( | ) |
Definition at line 35 of file ccutil.cpp.
{ #ifdef _WIN32 WaitForSingleObject(mutex_, INFINITE); #else pthread_mutex_lock(&mutex_); #endif }
void tesseract::CCUtilMutex::Unlock | ( | ) |
Definition at line 43 of file ccutil.cpp.
{ #ifdef _WIN32 ReleaseMutex(mutex_); #else pthread_mutex_unlock(&mutex_); #endif }