Message331804
> How do you use SIGCHLD on Windows?
I'm only proposing to use a signal when it's available, on UNIX. So have multiple implementations of the function, depending on the ability to get notified on completion without polling.
On Windows, maybe we could use a dedicated thread to set an event once WaitForSingleObject/WaitForMultipleObjects completes?
The design of my bpo-35479 change is to replace polling with one or multiple events. Maybe we can use an event to wakeup _worker_handler() when something happens, but have different wants to signal this event.
I have to investigate how Process.sentinel can be used here.
I might be interesting to use asyncio internally, but I'm not sure if it's possible ;-) |
|
| Date |
User |
Action |
Args |
| 2018-12-14 11:48:02 | vstinner | set | recipients:
+ vstinner, pitrou, davin, pablogsal |
| 2018-12-14 11:48:02 | vstinner | set | messageid: <1544788082.08.0.788709270274.issue35493@psf.upfronthosting.co.za> |
| 2018-12-14 11:48:02 | vstinner | link | issue35493 messages |
| 2018-12-14 11:48:02 | vstinner | create | |
|