|
µEvLoop
A fast and lightweight event loop aimed at embedded platforms in C99.
|
A container for the system's internal pools. More...
#include "uevloop/config.h"#include "uevloop/utils/linked-list.h"#include "uevloop/utils/object-pool.h"#include "uevloop/system/event.h"

Go to the source code of this file.
Data Structures | |
| struct | uel_syspools_t |
| A container for the system pools. More... | |
Macros | |
| #define | UEL_SYSPOOLS_EVENT_POOL_SIZE (1<<UEL_SYSPOOLS_EVENT_POOL_SIZE_LOG2N) |
Unrolls the UEL_SYSPOOLS_EVENT_POOL_SIZE_LOG2N value to its power-of-two form. | |
| #define | UEL_SYSPOOLS_LLIST_NODE_POOL_SIZE (1<<UEL_SYSPOOLS_LLIST_NODE_POOL_SIZE_LOG2N) |
Unrolls the UEL_SYSPOOLS_LLIST_NODE_POOL_SIZE_LOG2N value to its power-of-two form. | |
Functions | |
| void | uel_syspools_init (uel_syspools_t *pools) |
| Initialise the system pools. More... | |
| uel_event_t * | uel_syspools_acquire_event (uel_syspools_t *pools) |
| Acquires an event from the system pools. More... | |
| uel_llist_node_t * | uel_syspools_acquire_llist_node (uel_syspools_t *pools) |
| Acquires a linked list node from the system pools. More... | |
| bool | uel_syspools_release_event (uel_syspools_t *pools, uel_event_t *event) |
| Releases an event to the system pools. More... | |
| bool | uel_syspools_release_llist_node (uel_syspools_t *pools, uel_llist_node_t *node) |
| Releases a linked list node to the system pools. More... | |
A container for the system's internal pools.
| uel_event_t* uel_syspools_acquire_event | ( | uel_syspools_t * | pools | ) |
Acquires an event from the system pools.
| pools | The uel_syspools_t instance |
| uel_llist_node_t* uel_syspools_acquire_llist_node | ( | uel_syspools_t * | pools | ) |
Acquires a linked list node from the system pools.
| pools | The uel_syspools_t instance |
| void uel_syspools_init | ( | uel_syspools_t * | pools | ) |
Initialise the system pools.
| pools | The uel_syspools_t instance |
| bool uel_syspools_release_event | ( | uel_syspools_t * | pools, |
| uel_event_t * | event | ||
| ) |
Releases an event to the system pools.
| pools | The uel_syspools_t instance |
| event | The event to be released |
| bool uel_syspools_release_llist_node | ( | uel_syspools_t * | pools, |
| uel_llist_node_t * | node | ||
| ) |
Releases a linked list node to the system pools.
| pools | The uel_syspools_t instance |
| node | The linked list node to be released |
1.8.17