eRPC API Reference  Rev. 1.12.0
NXP Semiconductors
erpc::Mutex Class Reference

Mutex. More...

#include <erpc_threading.h>

Classes

class  Guard
 

Public Member Functions

 Mutex (void)
 Constructor.
 
 ~Mutex (void)
 Destructor.
 
bool tryLock (void)
 This function try lock mutex. More...
 
bool lock (void)
 This function lock mutex. More...
 
bool unlock (void)
 This function unlock mutex. More...
 

Detailed Description

Mutex.

If the OS supports it, the mutex will be recursive.

Member Function Documentation

bool Mutex::tryLock ( void  )

This function try lock mutex.

Return values
trueWhen mutex locked successfully.
falseWhen mutex didn't locked.
bool Mutex::lock ( void  )

This function lock mutex.

Return values
trueWhen mutex locked successfully.
falseWhen mutex didn't locked.
bool Mutex::unlock ( void  )

This function unlock mutex.

Return values
trueWhen mutex unlocked successfully.
falseWhen mutex didn't unlocked.

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