Thread (27 messages) 27 messages, 7 authors, 2021-03-08

RE: [RFC PATCH v2 00/13] Add futex2 syscall

flat view

From: David Laight <hidden>
Date: 2021-03-08 11:11:56
Also in: io-uring, linux-kselftest, lkml

From: Stefan Metzmacher
Sent: 07 March 2021 11:35

Hi André,
quoted
 ** The wait on multiple problem

 The use case lies in the Wine implementation of the Windows NT interface
 WaitMultipleObjects. This Windows API function allows a thread to sleep
 waiting on the first of a set of event sources (mutexes, timers, signal,
 console input, etc) to signal.
They are all events.
You can only wait on either events or sockets (using select).
There is a socket api to signal an event when data arrives (etc).
There is also the insane (these days) restriction of 64 events.
With that in mind would it be good to have some interaction with epoll (and similar calls)?
Or hook something up so that pollwakeup can kick a futex as well
as waking up poll() and adding an event to epoll().

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help