tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
SVSemaphore Class Reference

#include <svutil.h>

Public Member Functions

 SVSemaphore ()
 Sets up a semaphore. More...
 
void Signal ()
 Signal a semaphore. More...
 
void Wait ()
 Wait on a semaphore. More...
 

Private Attributes

sem_t semaphore_
 

Detailed Description

A semaphore class which encapsulates the main signalling and wait abilities of semaphores for windows and unix.

Constructor & Destructor Documentation

◆ SVSemaphore()

SVSemaphore::SVSemaphore ( )

Sets up a semaphore.

Member Function Documentation

◆ Signal()

void SVSemaphore::Signal ( )

Signal a semaphore.

◆ Wait()

void SVSemaphore::Wait ( )

Wait on a semaphore.

Member Data Documentation

◆ semaphore_

sem_t SVSemaphore::semaphore_
private

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