function lfds710_queue_umm_query

Revision as of 18:44, 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
    │           lfds710_queue_umm.h


enum lfds710_queue_umm_query

Opaque Structures

struct lfds710_queue_umm_state;


void lfds710_queue_umm_query( struct lfds710_queue_umm_state *qumms,
                              enum lfds710_queue_umm_query query_type,
                              void *query_input,
                              void *query_output );


struct lfds710_queue_umm_state *qumms

A pointer to an initialized struct lfds710_queue_umm_state.

enum lfds710_queue_umm_query query_type

Indicates which query to perform.

void *query_input

A pointer to data, or data cast to a void pointer, which is input data required by query indicated by query_type.

void *query_output

A pointer to store into which the requested information is placed, where the output data varies by the query indicted by query_type.


void *query_input

A pointer to input data for the query, where the data varies by query;
query_input is NULL.
query_input can be NULL, or or can be a pointer to a struct lfds710_misc_validation_info, which specifies an expected min/max count, in which case validation also counts the number of elements and check they fall within the specified range.

void *query_output

A pointer to output store for the query, where the output varies by query;
Points to a lfds710_pal_uint_t, which is set to the number of elements in the queue.
Points to an enum lfds710_misc_validity, which is set to indicate the result of the validation operation.


All SINGLETHREADED queries can only be safely performed if no enqueue or dequeue operations occur while the operation runs. If enqueue or dequeue operations do occur during the execution of a SINGLETHREADED query, it is theoretically possible for the query to enter an infinite loop. Do not do this.

See Also