ANNA Suite  2020b
Multipurpose development suite for Telco applications
Public Member Functions | List of all members
anna::NRMutex Class Reference

#include <NRMutex.hpp>

Inheritance diagram for anna::NRMutex:
Inheritance graph
[legend]
Collaboration diagram for anna::NRMutex:
Collaboration graph
[legend]

Public Member Functions

 NRMutex ()
 
- Public Member Functions inherited from anna::Mutex
 Mutex (const Mode::_v mode=Mode::Recursive)
 
virtual ~Mutex ()
 
virtual void lock () noexcept(false)
 
virtual void unlock ()
 
bool trylock () noexcept(false)
 
 operator const pthread_mutex_t * () const
 

Additional Inherited Members

- Protected Member Functions inherited from anna::Safe
 Safe ()
 

Detailed Description

Clase para implementar secciones criticas no-reentrantes. El uso general sera el siguiente:

mutex.lock ();
try {
<implementacion de la seccion critica>
mutex.unlock ();
}
catch (Exception&) {
mutex.unlock ();
.... tratamiento de la excepcion ...
}

La funcionalidad de esta clase solo estara disponible en aplicaciones multithread.

See also
anna::Guard
anna::Thread
anna::Semaphore

Constructor & Destructor Documentation

◆ NRMutex()

anna::NRMutex::NRMutex ( )
inline

Constructor.

44 : Mutex(Mode::Strict) { ; }
Mutex(const Mode::_v mode=Mode::Recursive)
Definition: Mutex.hpp:43

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