summaryrefslogtreecommitdiffstats
path: root/misc/dispatch.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-04-15 11:43:49 +0200
committerJan Ekström <jeebjp@gmail.com>2018-04-18 01:17:42 +0300
commit020730da0bcc467afee8ff9861fcc9116372003b (patch)
treec5f58fd079bec2828dc9ab03c0d875e7d3b56b54 /misc/dispatch.h
parent435bc003c0af7c51aa994f26ac0e80ad3e310b75 (diff)
downloadmpv-020730da0bcc467afee8ff9861fcc9116372003b.tar.bz2
mpv-020730da0bcc467afee8ff9861fcc9116372003b.tar.xz
player: remove in_dispatch field
(Not sure if worth the trouble, but it does seem less awkward.)
Diffstat (limited to 'misc/dispatch.h')
-rw-r--r--misc/dispatch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/dispatch.h b/misc/dispatch.h
index d850437934..3367018390 100644
--- a/misc/dispatch.h
+++ b/misc/dispatch.h
@@ -1,6 +1,8 @@
#ifndef MP_DISPATCH_H_
#define MP_DISPATCH_H_
+#include <stdint.h>
+
typedef void (*mp_dispatch_fn)(void *data);
struct mp_dispatch_queue;
@@ -20,6 +22,7 @@ void mp_dispatch_run(struct mp_dispatch_queue *queue,
mp_dispatch_fn fn, void *fn_data);
void mp_dispatch_queue_process(struct mp_dispatch_queue *queue, double timeout);
void mp_dispatch_interrupt(struct mp_dispatch_queue *queue);
+void mp_dispatch_adjust_timeout(struct mp_dispatch_queue *queue, int64_t until);
void mp_dispatch_lock(struct mp_dispatch_queue *queue);
void mp_dispatch_unlock(struct mp_dispatch_queue *queue);