|
IntrOS
|
lists of memory objects More...
Macros | |
| #define | OS_LST(lst) |
| define and initialize a list object | |
| #define | static_LST(lst) |
| static alias of OS_LST() | |
| #define | LST_INIT() |
| create and initialize a list object | |
| #define | LST_CREATE() |
| create and initialize a list object | |
| #define | LST_NEW LST_CREATE |
| alias of LST_CREATE() | |
Functions | |
| void | lst_init (lst_t *lst) |
| initialize a list object | |
| void | lst_reset (lst_t *lst) |
| wake up all waiting tasks with 'E_STOPPED' event value | |
| void | lst_kill (lst_t *lst) |
| alias of lst_reset() | |
| int | lst_take (lst_t *lst, void **data) |
| try to get memory object from the list object, don't wait if the list object is empty | |
| int | lst_tryWait (lst_t *lst, void **data) |
| alias of lst_take() | |
| int | lst_waitFor (lst_t *lst, void **data, cnt_t delay) |
| try to get memory object from the list object, wait for given duration of time while the list object is empty | |
| int | lst_waitUntil (lst_t *lst, void **data, cnt_t time) |
| try to get memory object from the list object, wait until given timepoint while the list object is empty | |
| int | lst_wait (lst_t *lst, void **data) |
| try to get memory object from the list object, wait indefinitely while the list object is empty | |
| void | lst_give (lst_t *lst, void *data) |
| transfer memory object to the list object, | |
lists of memory objects
| #define OS_LST | ( | lst | ) |
define and initialize a list object
| lst | name of a pointer to list object |
| #define static_LST | ( | lst | ) |
static alias of OS_LST()
| #define LST_INIT | ( | ) |
create and initialize a list object
| #define LST_CREATE | ( | ) |
| void lst_init | ( | lst_t * | lst | ) |
initialize a list object
| lst | pointer to list object |
| void lst_reset | ( | lst_t * | lst | ) |
wake up all waiting tasks with 'E_STOPPED' event value
| lst | pointer to list object |
| int lst_take | ( | lst_t * | lst, |
| void ** | data ) |
try to get memory object from the list object, don't wait if the list object is empty
| lst | pointer to list object |
| data | pointer to store the pointer to the memory object |
| int lst_waitFor | ( | lst_t * | lst, |
| void ** | data, | ||
| cnt_t | delay ) |
try to get memory object from the list object, wait for given duration of time while the list object is empty
| lst | pointer to list object |
| data | pointer to store the pointer to the memory object |
| delay | duration of time (maximum number of ticks to wait while the list object is empty)
|
| int lst_waitUntil | ( | lst_t * | lst, |
| void ** | data, | ||
| cnt_t | time ) |
try to get memory object from the list object, wait until given timepoint while the list object is empty
| lst | pointer to list object |
| data | pointer to store the pointer to the memory object |
| time | timepoint value |
|
inline |
try to get memory object from the list object, wait indefinitely while the list object is empty
| lst | pointer to list object |
| data | pointer to store the pointer to the memory object |
| void lst_give | ( | lst_t * | lst, |
| void * | data ) |
transfer memory object to the list object,
| lst | pointer to list object |
| data | pointer to memory object (taken from a memory pool: the list uses the header preceding the memory object) |