FFmpeg
Loading...
Searching...
No Matches
FFNetWakeup Struct Reference

A channel for waking a thread that is blocked in ff_network_wait_fd_wakeup(), from another thread. More...

#include <network.h>

Data Fields

int rfd
 
int wfd
 
atomic_int signaled
 

Detailed Description

A channel for waking a thread that is blocked in ff_network_wait_fd_wakeup(), from another thread.

Usage: the waiting thread calls ff_network_wait_fd_wakeup(); another thread calls ff_network_wakeup_signal() to end that wait; once the waiting thread has been joined, ff_network_wakeup_close() is called.

rfd is pollable together with sockets on every platform. It is an eventfd, the read end of a pipe, or a loopback datagram socket on Windows, where only sockets can be waited on together with sockets. wfd is the end ff_network_wakeup_signal() writes to; it equals rfd unless a pipe is in use. On systems other than Windows both fds are close-on-exec.

Definition at line 126 of file network.h.

Field Documentation

◆ rfd

int FFNetWakeup::rfd

Definition at line 127 of file network.h.

◆ wfd

int FFNetWakeup::wfd

Definition at line 128 of file network.h.

◆ signaled

atomic_int FFNetWakeup::signaled

Definition at line 129 of file network.h.


The documentation for this struct was generated from the following file: