MentOS  0.8.0
The Mentoring Operating System
Functions
mutex.c File Reference

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.