function lfds710_queue_bmm_cleanup

From liblfds.org
Revision as of 18:41, 30 May 2016 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source Files

└───liblfds710
    ├───inc
    │   └───liblfds710
    │           lfds710_queue_bmm.h
    └───src
        └───lfds710_queue
                lfds710_queue_bmm_cleanup.c

Opaque Structures

struct lfds710_queue_bmm_state;

Prototype

void lfds710_queue_bmm_cleanup( struct lfds710_queue_bmm_state *qbmms,
                                void (*element_cleanup_callback)(struct lfds710_queue_bmm_state *qbmms,
                                                                 void *key,
                                                                 void *value) );

Parameters

struct lfds710_queue_bmm_state *qbmms

A pointer to an initialized struct lfds710_queue_bmm_state.

void (*element_cleanup_callback)(struct lfds710_queue_bmm_state *qbmms, void *key, void *value)

A callback function which is called with the key and value of every element present in the queue at the time of cleanup. This argument can be NULL.

Notes

This function cleans up an initialized queue. If element_cleanup_callback is not NULL, it is called once for each element in the queue.

See Also