1 #ifndef ACL_AQUEUE_INCLUDE_H 2 #define ACL_AQUEUE_INCLUDE_H 4 #include "../stdlib/acl_define.h" 5 #include "../thread/acl_thread.h" 11 #define ACL_AQUEUE_ERR_UNKNOWN -1 12 #define ACL_AQUEUE_OK 0 13 #define ACL_AQUEUE_ERR_LOCK 1 14 #define ACL_AQUEUE_ERR_UNLOCK 2 15 #define ACL_AQUEUE_ERR_TIMEOUT 3 16 #define ACL_AQUEUE_ERR_COND_WAIT 4 17 #define ACL_AQUEUE_ERR_COND_SIGNALE 5 ACL_API int acl_aqueue_last_error(const ACL_AQUEUE *queue)
ACL_API int acl_aqueue_qlen(ACL_AQUEUE *queue)
struct ACL_AQUEUE ACL_AQUEUE
void(* ACL_AQUEUE_FREE_FN)(void *)
ACL_API int acl_aqueue_push(ACL_AQUEUE *queue, void *data)
ACL_API void acl_aqueue_set_owner(ACL_AQUEUE *queue, unsigned int owner)
ACL_API void acl_aqueue_check_owner(ACL_AQUEUE *queue, char flag)
ACL_API ACL_AQUEUE * acl_aqueue_new(void)
struct ACL_AQUEUE_ITEM ACL_AQUEUE_ITEM
ACL_API void acl_aqueue_free(ACL_AQUEUE *queue, ACL_AQUEUE_FREE_FN free_fn)
ACL_API void * acl_aqueue_pop_timedwait(ACL_AQUEUE *queue, int tmo_sec, int tmo_usec)
ACL_API void acl_aqueue_set_quit(ACL_AQUEUE *queue)
ACL_API void * acl_aqueue_pop(ACL_AQUEUE *queue)