Sujet : Re: OT: Windows (Was: Re: Open Source does not mean easily
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.unix.programmerDate : 07. Jan 2025, 03:14:11
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vli2lj$1t3lt$8@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Pan/0.161 (Chasiv Yar; )
On 07 Jan 2025 00:49:32 GMT, Nicolas George wrote:
The communication mechanisms between POSIX
threads and Unix I/O are completely alien to each-other: it is not
possible to poll() on a thread condition, nor is it it possible to set
up a condition to be woken by data on a file descriptor.
Linux offers signalfd, so you can indeed use poll(2) in a thread to be
woken up by any file descriptor, including a signal one (and that includes
POSIX real-time signals).