file
request_queue.c
Classes
- struct request_queue
Functions
-
auto request_queue_new(TALLOC_CTX* ctx,
unsigned int capacity) -> request_
queue* - request_queue_new Creates new request_
queue. -
auto request_queue_push(request_
queue* queue, struct Queue_ Node_ s* node) -> enum RequestQueueErrorCode -
auto request_queue_pop(request_
queue* queue) -> struct Queue_ Node_ s* - request_queue_pop Get node from the top of queue and remove it.
-
auto request_queue_peek(request_
queue* queue) -> struct Queue_ Node_ s* - request_queue_peek Get pointer to the head of queue.
-
auto request_queue_empty(request_
queue* queue) -> bool - request_queue_empty Returns true if queue is empty.
-
auto request_queue_move(request_
queue* from, request_ queue* to) -> enum RequestQueueErrorCode
Function documentation
request_ queue* request_queue_new(TALLOC_CTX* ctx,
unsigned int capacity)
request_queue_new Creates new request_
Parameters | |
---|---|
ctx in | Memory context to operate upon. |
capacity in | Maximum size of the queue. |
Returns |
|
struct Queue_ Node_ s* request_queue_pop(request_ queue* queue)
request_queue_pop Get node from the top of queue and remove it.
Parameters | |
---|---|
queue in | Current queue to receive element from. |
Returns |
|
struct Queue_ Node_ s* request_queue_peek(request_ queue* queue)
request_queue_peek Get pointer to the head of queue.
Parameters | |
---|---|
queue in | Current queue to receive element from. |
Returns |
|
bool request_queue_empty(request_ queue* queue)
request_queue_empty Returns true if queue is empty.
Parameters | |
---|---|
queue in | Current queue to operate upon. |
Returns |
|