CUBRID Engine
latest
|
Go to the source code of this file.
Classes | |
struct | css_list_entry |
struct | css_list |
Typedefs | |
typedef struct css_list_entry | CSS_LIST_ENTRY |
typedef struct css_list | CSS_LIST |
Enumerations | |
enum | { TRAV_CONT = 0, TRAV_STOP = 1, TRAV_STOP_DELETE = 2, TRAV_CONT_DELETE = 3 } |
Functions | |
int | css_initialize_list (CSS_LIST *ptr, int free_count) |
int | css_finalize_list (CSS_LIST *ptr) |
int | css_add_list (CSS_LIST *ptr, void *item) |
void * | css_remove_list_from_head (CSS_LIST *ptr) |
int | css_traverse_list (CSS_LIST *ptr, int(*func)(void *, void *), void *arg) |
Definition at line 36 of file connection_list_sr.h.
typedef struct css_list_entry CSS_LIST_ENTRY |
Definition at line 29 of file connection_list_sr.h.
anonymous enum |
Enumerator | |
---|---|
TRAV_CONT | |
TRAV_STOP | |
TRAV_STOP_DELETE | |
TRAV_CONT_DELETE |
Definition at line 47 of file connection_list_sr.h.
int css_add_list | ( | CSS_LIST * | ptr, |
void * | item | ||
) |
Definition at line 161 of file connection_list_sr.c.
References assert, css_list::back, css_list::count, css_traverse_list(), css_list_entry::data, ER_CSS_ALLOC, css_list::free_count, css_list::free_list, css_list::front, css_list_entry::next, NO_ERROR, NULL, TRAV_CONT, and TRAV_STOP_DELETE.
Referenced by css_add_queue_entry(), and css_add_wait_queue_entry().
int css_finalize_list | ( | CSS_LIST * | ptr | ) |
Definition at line 121 of file connection_list_sr.c.
References assert, css_list::count, free_and_init, css_list::free_count, css_list::free_list, css_list_entry::next, NO_ERROR, and NULL.
Referenced by css_shutdown_conn().
int css_initialize_list | ( | CSS_LIST * | ptr, |
int | free_count | ||
) |
Definition at line 83 of file connection_list_sr.c.
References assert, css_list::back, css_list::count, ER_CSS_ALLOC, css_list::free_count, free_count, css_list::free_list, css_list::front, i, css_list_entry::next, NO_ERROR, and NULL.
Referenced by css_initialize_conn().
void* css_remove_list_from_head | ( | CSS_LIST * | ptr | ) |
Definition at line 277 of file connection_list_sr.c.
References css_list::back, css_list::count, css_list_entry::data, css_list::free_count, css_list::free_list, css_list::front, css_list_entry::next, and NULL.
Referenced by css_return_queued_request().
int css_traverse_list | ( | CSS_LIST * | ptr, |
int(*)(void *, void *) | func, | ||
void * | arg | ||
) |
Definition at line 311 of file connection_list_sr.c.
References css_list::back, css_list::count, css_list_entry::data, ER_CSS_INVALID_RETURN_VALUE, css_list::free_count, css_list::free_list, css_list::front, css_list_entry::next, NO_ERROR, NULL, TRAV_CONT, TRAV_CONT_DELETE, TRAV_STOP, and TRAV_STOP_DELETE.
Referenced by css_add_list(), css_find_and_remove_queue_entry(), css_find_and_remove_wait_queue_entry(), css_find_queue_entry(), and css_remove_all_unexpected_packets().