Monado OpenXR Runtime
ipc_server_mainloop_android.c File Reference

Server mainloop details on Android. More...

#include "xrt/xrt_config_have.h"
#include "xrt/xrt_config_os.h"
#include "os/os_time.h"
#include "util/u_var.h"
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "server/ipc_server.h"
#include "server/ipc_server_mainloop_android.h"
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/epoll.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
Include dependency graph for ipc_server_mainloop_android.c:

Macros

#define SHUTTING_DOWN   (-1)
 
#define NUM_POLL_EVENTS   8
 
#define NO_SLEEP   0
 

Functions

static int init_pipe (struct ipc_server_mainloop *ml)
 
static int init_epoll (struct ipc_server_mainloop *ml)
 
static void handle_listen (struct ipc_server *vs, struct ipc_server_mainloop *ml)
 
void ipc_server_mainloop_poll (struct ipc_server *vs, struct ipc_server_mainloop *ml)
 
int ipc_server_mainloop_init (struct ipc_server_mainloop *ml)
 
void ipc_server_mainloop_deinit (struct ipc_server_mainloop *ml)
 
int ipc_server_mainloop_add_fd (struct ipc_server *vs, struct ipc_server_mainloop *ml, int newfd)
 

Detailed Description

Function Documentation

◆ ipc_server_mainloop_deinit()

void ipc_server_mainloop_deinit ( struct ipc_server_mainloop ml)
Todo:
close pipe_write or epoll_fd?