Files
swift-nio/Sources/NIOPosix
Cory Benfield f32c9a3931 Suppress the performance checker warning by being sneaky (#2620)
Motivation:

Users are receiving thread performance checker warnings when
they create MTELGs. This is largely unnecessary: MTELGs are
not typically created on the fly but instead once, at program
startup. That means the issue here isn't really all that
profound.

While we could work around it by substantially rearchitecting
the event loops (see #2618), an easier fix is to observe that
the thread performance checker doesn't fire when we use
condition variables.

Modifications:

Remove the use of the DispatchGroup and replace it with a
condition variable.

Result:

Simpler code and no thread performance checker warning.
2024-01-05 11:14:58 +00:00
..
2023-06-23 08:20:14 +01:00
2022-02-22 01:37:47 -08:00