misc update

This commit is contained in:
bit-cyber-fh
2024-04-02 00:05:54 +08:00
parent ff4b609a37
commit f363d3afba
9 changed files with 14 additions and 19 deletions
+4 -8
View File
@@ -45,13 +45,11 @@ typedef struct
* @brief create a FIFO queue
* @param queue The new queue
* @param queue_capacity maximum size of the queue
* @param a pool to allocate queue from
*/
bool CircQueueCreate(CIRC_QUEUE **queue, uint32_t queue_capacity);
/**
* @brief free queue memory -- call after destroy
* @note we do not free in destroy() to follow pthreads convention
*/
void CircQueueFree(CIRC_QUEUE *queue);
@@ -72,9 +70,8 @@ bool isCircQueueEmpty(CIRC_QUEUE *queue);
*
* @param queue the queue
* @param data the data
* @return RPA_EINTR the blocking was interrupted (try again)
* @return RPA_EOF the queue has been terminated
* @return RPA_SUCCESS on a successful push
* @return True on a successful push
* @return False push failed
*/
bool CircQueuePush(CIRC_QUEUE *queue, void *data);
@@ -83,9 +80,8 @@ bool CircQueuePush(CIRC_QUEUE *queue, void *data);
*
* @param queue the queue
* @param data the data
* @return RPA_EINTR the blocking was interrupted (try again)
* @return RPA_EOF if the queue has been terminated
* @return RPA_SUCCESS on a successful pop
* @return false pop failed
* @return true on a successful pop
*/
bool CircQueuePop(CIRC_QUEUE *queue, void **data);