Nut/OS  4.10.3
API Reference
mutex.h File Reference
#include <compiler.h>
#include <sys/types.h>
#include <sys/thread.h>
Include dependency graph for mutex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _MUTEX
 Recursive mutex. More...

Typedefs

typedef struct _MUTEX MUTEX
 Recursive mutex type.

Functions

void NutMutexInit (MUTEX *mutex)
 Create a mutex.
void NutMutexLock (MUTEX *mutex)
 Lock a mutex.
int NutMutexUnlock (MUTEX *mutex)
 Unlock a mutex.
int NutMutexTrylock (MUTEX *mutex)
 Attempt to lock a mutex without blocking.
int NutMutexDestroy (MUTEX *mutex)
 Free resources allocated for a mutex.