mutex.h File Reference

Header file for implementation of mutexes, file mutexes.c. More...

#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)


Detailed Description

Header file for implementation of mutexes, file mutexes.c.

This file is based on Kalisto, Development Kernel copyrighted (c) to Distributed Systems Research Group MFF UK, Czech republic.


Typedef Documentation

typedef struct mutex mutex_t

define mutex structure as usual with .._t notation


Function Documentation

void mutex_destroy ( mutex_t mtx  ) 

Free semaphore structures. Function call panic if any thread is waiting on semaphore.

Parameters:
mtx - mutex to be destroyed


Generated on Wed Nov 15 17:25:44 2006 for Kalisto by  doxygen 1.4.7