OnixS C++ CME iLink 3 Binary Order Entry Handler  1.18.0
API Documentation
Mutex Class Reference

#include <OnixS/CME/iLink3/threading/Mutex.h>

Public Member Functions

 Mutex ()
 ~Mutex ()
void acquire ()
bool tryAcquire ()
void release ()


class Condition

Detailed Description

Protects resources from simultaneous access by multiple threads.

Only one thread at a time can own instance of this class.

This implementation is optimized for locking threads that are in the same process.

It is NOT suitable for interprocess synchronization.
Recursive locking is NOT supported.

Definition at line 39 of file Mutex.h.

Constructor & Destructor Documentation

Mutex ( )

Initializes the instance.

~Mutex ( )

Destructs the instance.

Member Function Documentation

void acquire ( )

Acquires the lock ownership.

If the mutex is already occupied by another thread blocks the current thread and waits until it will be released by the owner.

void release ( )

Releases the ownership (lock) and unblocks one of the waiting threads.

bool tryAcquire ( )

Tries to acquires the lock ownership.

false if the mutex is already occupied by another thread, otherwise - true.

Friends And Related Function Documentation

friend class Condition

Definition at line 42 of file Mutex.h.

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