From c3e11f7b7c9aec22f7ecc56feacf42194e7ea727 Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Fri, 29 Jul 2016 02:24:52 +0100 Subject: osdep/io: introduce mp_flush_wakeup_pipe() Makes a fairly common occurence with wakeup_pipes easier to handle. --- osdep/io.h | 1 + 1 file changed, 1 insertion(+) (limited to 'osdep/io.h') diff --git a/osdep/io.h b/osdep/io.h index 541e36aeea..333ed4f808 100644 --- a/osdep/io.h +++ b/osdep/io.h @@ -47,6 +47,7 @@ bool mp_set_cloexec(int fd); int mp_make_cloexec_pipe(int pipes[2]); int mp_make_wakeup_pipe(int pipes[2]); +void mp_flush_wakeup_pipe(int pipe_end); #ifdef _WIN32 #include -- cgit v1.2.3