YAZ  5.23.1
Functions
requestq.c File Reference

Implements Simple queue management for GFS. More...

#include <stdlib.h>
#include <yaz/xmalloc.h>
#include "session.h"

Go to the source code of this file.

Functions

void request_enq (request_q *q, request *r)
 
requestrequest_head (request_q *q)
 
requestrequest_deq (request_q *q)
 
void request_initq (request_q *q)
 
void request_delq (request_q *q)
 
requestrequest_get (request_q *q)
 
void request_release (request *r)
 

Detailed Description

Implements Simple queue management for GFS.

We also use the request-freelist to store encoding buffers, rather than freeing and xmalloc'ing them on each cycle.

Definition in file requestq.c.

Function Documentation

void request_delq ( request_q q)

Definition at line 55 of file requestq.c.

References request_q::list, request::next, request::response, and xfree.

Referenced by destroy_association().

request* request_deq ( request_q q)
void request_enq ( request_q q,
request r 
)

Definition at line 21 of file requestq.c.

References request_q::head, request::next, request_q::num, and request_q::tail.

Referenced by ir_read(), and process_gdu_response().

request* request_get ( request_q q)
request* request_head ( request_q q)

Definition at line 31 of file requestq.c.

References request_q::head.

Referenced by ir_session(), and process_gdu_response().

void request_initq ( request_q q)

Definition at line 49 of file requestq.c.

References request_q::head, request_q::list, request_q::num, and request_q::tail.

Referenced by create_association().

void request_release ( request r)