mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-05 08:04:41 +00:00
compat/platform_{pipe,semaphore}: IWYU
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
#include "audio/types.h"
|
||||
#include "audio/utils.h"
|
||||
#include "compat/platform_semaphore.h"
|
||||
#include "config.h" // for PACKAGE_STRING
|
||||
#include "debug.h"
|
||||
#include "host.h"
|
||||
#include "jack_common.h"
|
||||
|
||||
@@ -35,17 +35,20 @@
|
||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif // HAVE_CONFIG_H
|
||||
#include "config_unix.h"
|
||||
#include "config_win32.h"
|
||||
|
||||
#include "compat/platform_pipe.h"
|
||||
#include "rtp/net_udp.h" // socket_error
|
||||
|
||||
#include <cstdio> // for perror, NULL, fprintf, stderr
|
||||
#include <cstring> // for memset
|
||||
#include <sys/time.h> // for timeval
|
||||
#include <thread>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h> // for pipe
|
||||
#endif
|
||||
|
||||
#include "rtp/net_udp.h" // socket_error
|
||||
#include "compat/net.h" // htons etc.
|
||||
|
||||
using std::thread;
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
@@ -46,13 +46,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#include "config_unix.h"
|
||||
#include "config_win32.h"
|
||||
#endif // HAVE_CONFIG_H
|
||||
#include "compat/platform_semaphore.h"
|
||||
|
||||
#include "debug.h"
|
||||
#include <errno.h> // for EINTR, errno
|
||||
#include <stdio.h> // for perror
|
||||
#include <stdlib.h> // for abort
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <mach/semaphore.h>
|
||||
@@ -62,12 +60,10 @@
|
||||
#include <semaphore.h>
|
||||
#endif /* __APPLE__ */
|
||||
|
||||
#include "compat/platform_semaphore.h"
|
||||
|
||||
void platform_sem_init(void *semStructure, int pshared, int initialValue)
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
UNUSED(pshared);
|
||||
(void) pshared;
|
||||
semaphore_create(mach_task_self(), (semaphore_t *) semStructure,
|
||||
SYNC_POLICY_FIFO, initialValue);
|
||||
#else
|
||||
|
||||
@@ -46,10 +46,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "config_unix.h"
|
||||
#include "config_win32.h"
|
||||
|
||||
#ifndef _PLATFORM_SEMAPHORE_H
|
||||
#define _PLATFORM_SEMAPHORE_H
|
||||
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
|
||||
#include "audio/types.h" // for audio_frame
|
||||
#include "compat/platform_semaphore.h" // for platform_sem_post, platform_s...
|
||||
#include "compat/usleep.h" // for usleep
|
||||
#include "debug.h" // for log_msg, LOG_LEVEL_ERROR, LOG...
|
||||
#include "host.h" // for exit_uv, audio_capture_channels
|
||||
#include "lib_common.h" // for REGISTER_MODULE, library_class
|
||||
|
||||
Reference in New Issue
Block a user