Implement mutex_lock / mutex_unlock

Issue #111 new
Patryk Kubiak created an issue

Implement the functions for simply locking and unlocking mutexes in the POSIX modules directory. Here are prototypes:

Note, that mutexes must be created first by mutex_new function

extern bool mutex_lock( mutex_t Mutex , oC_Time_t Timeout );
extern bool mutex_unlock( mutex_t Mutex );

Use these kernel functions:

extern bool                 oC_Mutex_Give       ( oC_Mutex_t Mutex );
extern bool                 oC_Mutex_Take       ( oC_Mutex_t Mutex , oC_Time_t Timeout );

Comments (1)

  1. Log in to comment