EM-ODP  3.7.0
Event Machine on ODP
objpool.h File Reference
#include <event_machine/platform/env/environment.h>
#include <list.h>
Include dependency graph for objpool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  objpool_elem_t
 
union  objsubpool_t
 
struct  objpool_t
 

Macros

#define OBJSUBPOOLS_MAX   8
 

Functions

 COMPILE_TIME_ASSERT (2 *sizeof(objsubpool_t)==ENV_CACHE_LINE_SIZE, OBJSUBPOOL_T_SIZE_ERROR)
 
int objpool_init (objpool_t *const objpool, uint32_t nbr_subpools)
 
void objpool_add (objpool_t *const objpool, uint32_t subpool_idx, objpool_elem_t *const elem)
 
objpool_elem_tobjpool_rem (objpool_t *const objpool, uint32_t subpool_idx)
 
int objpool_rem_elem (objpool_t *const objpool, objpool_elem_t *const elem)
 

Detailed Description

Object-pool types & definitions

Definition in file objpool.h.