Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Interface «eoos::api::Semaphore»

Semaphore interface.

public: virtual ~Semaphore();

Destructor.

public: virtual bool_t acquire();

Acquires one permit from this semaphore.

The function acquires one permit or waits while the permit will be released.

Returns:
True if the semaphore is acquired successfully.

public: virtual bool_t isConstructed() const;

Tests if this object has been constructed.

Returns:
True if object has been constructed successfully.

public: virtual void release();

Releases one permit.

The function releases from one permit and returns this to the semaphore.

Back to class list