Files
swift-nio/Sources
George Barnett 4015e33e19 Use condition variable in NIOThreadPool (#2964)
Motivation:

The thread performance checker warns that a threads with QoS are waiting
on threads in the NIOThreadPool. We can avoid these warnings by using a
condition variable instead.

Modifications:

- Replace the usage of a semaphore and lock in NIOThreadPool with a
condition lock.
- The condition value indicates whether the threads have work to do
(where work is processing work items or exiting their run loop).

Result:

- Fewer warnings
- Resolves #2960

(cherry picked from commit af0e612e8f)
2024-11-22 09:53:27 +00:00
..
2024-01-16 03:30:26 -08:00
2024-09-12 13:18:25 +01:00
2024-09-12 13:18:25 +01:00
2024-07-19 11:48:17 +02:00