BeRTOS
Data Structures | Enumerations | Functions
resource.h File Reference

TODO: More...

#include <drv/timer.h>
#include <kern/sem.h>

Go to the source code of this file.

Data Structures

struct  Resource
 Hold context information for a resource such as an audio channel. More...

Enumerations

enum  
 Event sent by ResMan to owners when to request resource release.

Functions

bool ResMan_Alloc (Resource *res, int pri, ResMan_time_t timeout, struct Observer *releaseRequest)
 Try to allocate a resource res with priority pri for at most timeout ticks.
void ResMan_Free (Resource *res)
 Free resource res. Will eventually wake-up other queued owners.

Detailed Description

TODO:

Author:
Bernie Innocenti <bernie@codewiz.org>
Stefano Fedrigo <aleph@develer.com>

Definition in file resource.h.