Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2018-04-21 22:42:19 +0300
committerClément Bœsch <u@pkh.me>2018-04-26 20:41:19 +0300
commit71fa82bed62f812d30aee26f3c6385e2ec890ebb (patch)
treec31086aa145158b69342c779a9e174dccb741e43 /libavutil/threadmessage.h
parent02e4970bc9d3215f862a5d64ec48922d98eb17c1 (diff)
lavu/threadmessage: add av_thread_message_queue_nb_elems()
Diffstat (limited to 'libavutil/threadmessage.h')
-rw-r--r--libavutil/threadmessage.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/threadmessage.h b/libavutil/threadmessage.h
index 8480a0a3db..42ce655f36 100644
--- a/libavutil/threadmessage.h
+++ b/libavutil/threadmessage.h
@@ -96,6 +96,14 @@ void av_thread_message_queue_set_free_func(AVThreadMessageQueue *mq,
void (*free_func)(void *msg));
/**
+ * Return the current number of messages in the queue.
+ *
+ * @return the current number of messages or AVERROR(ENOSYS) if lavu was built
+ * without thread support
+ */
+int av_thread_message_queue_nb_elems(AVThreadMessageQueue *mq);
+
+/**
* Flush the message queue
*
* This function is mostly equivalent to reading and free-ing every message