From 020730da0bcc467afee8ff9861fcc9116372003b Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 15 Apr 2018 11:43:49 +0200 Subject: player: remove in_dispatch field (Not sure if worth the trouble, but it does seem less awkward.) --- misc/dispatch.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'misc/dispatch.h') 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 + 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); -- cgit v1.2.3