Go to the source code of this file.
Classes |
|
class | RequestExpirationInfo |
Functions |
|
stl_slist (RequestExpirationInfo) expired_requests | |
list of expired requests [m_expired_requests] |
|
u_int16 | get_request_id () |
gets a new request id. returns the ID or throws an exception |
|
void | register_request_id (u_int16 r_id) |
registers the given request id for use |
|
u_int16 | register_new_request_id () |
registers a new request id for use |
|
void | release_request_id (u_int16 r_id) |
releases the given request id for enqueuing in the expired_request_id list |
|
void | direct_release_request_id (u_int16 r_id) |
directly releases a request id |
|
bool | check_request_id (u_int16 r_id) |
returns true if the given request id is free |
|
void | request_id_checkexpired () |
this function cleans up expired request ids periodically |
|
Variables |
|
pthread_mutex_t | m_request_id |
Internal mutex. Lock order: m_request_id -> m_expired_requests. |
|
pthread_mutex_t | m_expired_requests |
Internal mutex. Lock order: m_request_id -> m_expired_requests. |
This file contains some functions for dealing with request IDs. These functions are only designed and useful for internal purposes; you wouldn't want to use them in your poslib application.
Definition in file requestid.h.