Skip to main content
FRAMES NO FRAMES

Class IloBaseEnvMutex

Definition file: ilconcert/iloenv.h
Map of IloBaseEnvMutexIloBaseEnvMutexIloBaseEnvMutex
A class to initialize multithreading in an application.

An instance of this base class in the function IloInitMT initializes multithreading in a Concert Technology application. For a general purpose mutex, see the class IloFastMutex.

The mutex implemented by this class is recursive, meaning that a thread can acquire a mutex that it already holds without deadlocking. Every call to lock must be paired with a call to unlock and the mutex is released only with the last outstanding call to unlock.

See Also:

Method Summary
public virtual voidlock()
public virtual voidunlock()
Method Detail

lock

public virtual void lock()

This member function locks a mutex.


unlock

public virtual void unlock()

This member function unlocks a mutex.