|
FFmpeg
|
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 |
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.
| atomic_int FFNetWakeup::signaled |