VLC 4.0.0-dev
Loading...
Searching...
No Matches

This file declares interruptible sleep functions. More...

Include dependency graph for vlc_interrupt.h:

Go to the source code of this file.

Typedefs

typedef struct vlc_interrupt vlc_interrupt_t
 

Functions

int vlc_sem_wait_i11e (vlc_sem_t *)
 Interruptible variant of vlc_sem_wait().
 
int vlc_mwait_i11e (vlc_tick_t)
 Interruptible variant of vlc_tick_wait().
 
static int vlc_msleep_i11e (vlc_tick_t delay)
 Interruptible variant of vlc_tick_sleep().
 
int vlc_poll_i11e (struct pollfd *, unsigned, int)
 Interruptible variant of poll().
 
ssize_t vlc_readv_i11e (int fd, struct iovec *, int)
 Wrapper for readv() that returns the EINTR error upon VLC I/O interruption.
 
ssize_t vlc_writev_i11e (int fd, const struct iovec *, int)
 Wrapper for writev() that returns the EINTR error upon VLC I/O interruption.
 
ssize_t vlc_read_i11e (int fd, void *, size_t)
 Wrapper for read() that returns the EINTR error upon VLC I/O interruption.
 
ssize_t vlc_write_i11e (int fd, const void *, size_t)
 Wrapper for write() that returns the EINTR error upon VLC I/O interruption.
 
ssize_t vlc_recvmsg_i11e (int fd, struct msghdr *, int flags)
 
ssize_t vlc_sendmsg_i11e (int fd, const struct msghdr *, int flags)
 
ssize_t vlc_recvfrom_i11e (int fd, void *, size_t, int flags, struct sockaddr *, socklen_t *)
 
ssize_t vlc_sendto_i11e (int fd, const void *, size_t, int flags, const struct sockaddr *, socklen_t)
 
static ssize_t vlc_recv_i11e (int fd, void *buf, size_t len, int flags)
 
static ssize_t vlc_send_i11e (int fd, const void *buf, size_t len, int flags)
 
int vlc_accept_i11e (int fd, struct sockaddr *, socklen_t *, bool)
 
void vlc_interrupt_register (void(*cb)(void *), void *opaque)
 Registers a custom interrupt handler.
 
int vlc_interrupt_unregister (void)
 
vlc_interrupt_tvlc_interrupt_create (void)
 Creates an interruption context.
 
void vlc_interrupt_destroy (vlc_interrupt_t *)
 Destroys an interrupt context.
 
vlc_interrupt_tvlc_interrupt_set (vlc_interrupt_t *)
 Sets the interruption context for the calling thread.
 
void vlc_interrupt_raise (vlc_interrupt_t *)
 Raises an interruption through a specified context.
 
void vlc_interrupt_kill (vlc_interrupt_t *)
 Marks the interruption context as "killed".
 
bool vlc_killed (void)
 Checks if the interruption context was "killed".
 
void vlc_interrupt_forward_start (vlc_interrupt_t *to, void *data[2])
 Enables forwarding of interruption.
 
int vlc_interrupt_forward_stop (void *const data[2])
 Undoes vlc_interrupt_forward_start().
 

Detailed Description

This file declares interruptible sleep functions.