Go to the documentation of this file.
21 #ifndef AVFILTER_DNN_SAFE_QUEUE_H
22 #define AVFILTER_DNN_SAFE_QUEUE_H
void ff_safe_queue_destroy(SafeQueue *sq)
Destroy the SafeQueue instance.
Double-ended queue with mutex locks ensuring data consistency while multithreading.
size_t ff_safe_queue_size(SafeQueue *sq)
Return the length of the SafeQueue.
SafeQueue * ff_safe_queue_create(void)
Create and initialize a SafeQueue instance.
void * ff_safe_queue_pop_front(SafeQueue *sq)
Remove and free first element from the queue in SafeQueue.
int ff_safe_queue_push_front(SafeQueue *sq, void *v)
Add data to the head of queue in the SafeQueue after locking mutex.
int ff_safe_queue_push_back(SafeQueue *sq, void *v)
Add data to the tail of queue in the SafeQueue after locking mutex.