#include "semaphore.h"
Go to the source code of this file.
Data Structures | |
struct | mutex |
Macro defined to automaticly get thrue tests. For detail comments follow macro definition | |
#define | mutex_lock(mtx_ptr) mutex_lock_nondebug(mtx_ptr) |
#define | mutex_lock_timeout(mtx_ptr, msec) mutex_lock_timeout_nondebug(mtx_ptr, msec) |
#define | mutex_unlock(mtx_ptr) mutex_unlock_nondebug(mtx_ptr) |
Typedefs | |
typedef mutex | mutex_t |
Functions | |
void | mutex_init (mutex_t *mtx) |
Initilaization of the mutex. This function initiliaze structure for the mutex. | |
void | mutex_destroy (mutex_t *mtx) |
Free semaphore structures. Function call panic if any thread is waiting on semaphore. | |
void | mutex_unlock (mutex_t *mtx) |
void | mutex_lock (mutex_t *mtx) |
This file is based on Kalisto, Development Kernel copyrighted (c) to Distributed Systems Research Group MFF UK, Czech republic.
void mutex_destroy | ( | mutex_t * | mtx | ) |
Free semaphore structures. Function call panic if any thread is waiting on semaphore.
mtx | - mutex to be destroyed |