mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 20:14:57 +00:00
osdep: rename polldev to poll_wrapper
Originally, this was added as purely a shim for macOS. However since we want to do high resolution polling which is not neccesarily available on all platforms, making this a generic wrapper for poll functions is useful so rename it.
This commit is contained in:
parent
a899e14bcc
commit
ba4b408b8b
@ -403,7 +403,7 @@ if posix
|
||||
subprocess_source = files('osdep/subprocess-posix.c')
|
||||
sources += path_source + subprocess_source + \
|
||||
files('input/ipc-unix.c',
|
||||
'osdep/polldev.c',
|
||||
'osdep/poll_wrapper.c',
|
||||
'osdep/terminal-unix.c',
|
||||
'sub/filter_regex.c')
|
||||
endif
|
||||
|
@ -1,6 +1,4 @@
|
||||
/*
|
||||
* poll shim that supports device files on macOS.
|
||||
*
|
||||
* This file is part of mpv.
|
||||
*
|
||||
* mpv is free software; you can redistribute it and/or
|
||||
@ -22,9 +20,12 @@
|
||||
#include <sys/select.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "osdep/polldev.h"
|
||||
#include "poll_wrapper.h"
|
||||
|
||||
int polldev(struct pollfd fds[], nfds_t nfds, int timeout) {
|
||||
|
||||
// poll shim that supports device files on macOS.
|
||||
int polldev(struct pollfd fds[], nfds_t nfds, int timeout)
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
int maxfd = 0;
|
||||
fd_set readfds, writefds;
|
@ -31,7 +31,7 @@
|
||||
|
||||
#include "osdep/io.h"
|
||||
#include "osdep/threads.h"
|
||||
#include "osdep/polldev.h"
|
||||
#include "osdep/poll_wrapper.h"
|
||||
|
||||
#include "common/common.h"
|
||||
#include "misc/bstr.h"
|
||||
|
Loading…
Reference in New Issue
Block a user