Class Semaphore

Class Documentation

class Semaphore

A simple semaphore to hold/release lock when starting a new IO thread.

Public Functions

inline explicit Semaphore(unsigned initialLevel = 0)

Construct a new Semaphore object.

Parameters:

initialLevel

inline void up(unsigned count = 1)

Release lock.

Parameters:

count

inline void down(unsigned count = 1)

Obtain lock.

Parameters:

count