MentOS  0.8.0
The Mentoring Operating System
Classes | Typedefs | Functions
mutex.h File Reference

Go to the source code of this file.

Classes

struct  mutex_t
 Structure of a mutex. More...
 

Typedefs

typedef struct mutex_t mutex_t
 Structure of a mutex.
 

Functions

void mutex_lock (mutex_t *mutex, uint32_t owner)
 Allows to lock a mutex. More...
 
void mutex_unlock (mutex_t *mutex)
 Unlocks the mutex. More...
 

Detailed Description

Function Documentation

◆ mutex_lock()

void mutex_lock ( mutex_t mutex,
uint32_t  owner 
)

Allows to lock a mutex.

Parameters
mutexThe mutex to lock.
ownerThe one who request the lock.

◆ mutex_unlock()

void mutex_unlock ( mutex_t mutex)

Unlocks the mutex.

Parameters
mutexThe mutex to unlock.