Recursive Mutex for thread synchronization.  
More...
Recursive Mutex for thread synchronization. 
◆ RMUTEX_INIT
◆ rmutex_t
Mutex structure. 
Must never be modified by the user. 
 
 
◆ rmutex_init()
  
  
      
        
          | static void rmutex_init  | 
          ( | 
          rmutex_t *  | 
          rmutex | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Initializes a recursive mutex object. 
For initialization of variables use RMUTEX_INIT instead. Only use the function call for dynamically allocated mutexes. 
- Parameters
 - 
  
    | [out] | rmutex | pre-allocated mutex structure, must not be NULL.  | 
  
   
Definition at line 74 of file rmutex.h.
 
 
◆ rmutex_lock()
Locks a recursive mutex, blocking. 
- Parameters
 - 
  
    | [in] | rmutex | Recursive mutex object to lock. Has to be initialized first. Must not be NULL.  | 
  
   
 
 
◆ rmutex_trylock()
Tries to get a recursive mutex, non-blocking. 
- Parameters
 - 
  
    | [in] | rmutex | Recursive mutex object to lock. Has to be initialized first. Must not be NULL. | 
  
   
- Returns
 - 1 if mutex was unlocked, now it is locked. 
 
- 
0 if the mutex was locked. 
 
 
 
◆ rmutex_unlock()
Unlocks the recursive mutex. 
- Parameters
 - 
  
    | [in] | rmutex | Recursive mutex object to unlock, must not be NULL.  |