Main Page   Modules   Data Structures   File List   Globals  

mutex.c File Reference

Functions for mutual exclusion. More...

#include <avr/interrupt.h>
#include <stddef.h>
#include "otos_cfg.h"
#include "otos_def.h"
#include "types.h"
#include "task.h"
#include "mutex.h"
#include "time.h"

Go to the source code of this file.

Functions

uint8_t otosTestAndSet (uint8_t *pLock)
 Test and set a lock (integer variable).

uint8_t otosLockMutex (OtosMutex *pMutex, uint32_t timeout)
 Lock a mutex.

uint8_t otosUnlockMutex (OtosMutex *pMutex)
 Unlock a mutex.


Detailed Description

Functions for mutual exclusion.

Definition in file mutex.c.


Generated on Sat Jan 25 18:41:43 2003 for otOS by doxygen1.3-rc2