Kitura / Kitura-WebSocket

WebSocket support for Kitura
Apache License 2.0
68 stars 30 forks source link

WebSocketConnection: Priority inversion error on macOS 13 #109

Open ryanfrancesconi opened 1 year ago

ryanfrancesconi commented 1 year ago

I'm seeing a priority inversion error running on macOS 13.

image
 private func lockWriteLock() {
     _ = writeLock.wait(timeout: DispatchTime.distantFuture)
}
Thread Performance Checker: Thread running at QOS_CLASS_USER_INTERACTIVE waiting on a lower QoS thread running at QOS_CLASS_DEFAULT. Investigate ways to avoid priority inversions
PID: 89678, TID: 1071407
Backtrace
=================================================================
4   ADD                                 0x0000000105e0502c $s15KituraWebSocket0bC10ConnectionC13lockWriteLock33_F48A757546F02A0B842410745CA0DDF6LLyyF + 180
5   ADD                                 0x0000000105e04d58 $s15KituraWebSocket0bC10ConnectionC11sendMessage33_F48A757546F02A0B842410745CA0DDF6LL10withOpCode7payload0Q6LengthyAA7WSFrameV11FrameOpcodeO_SVSgSitF + 160
6   ADD                                 0x0000000105e01214 $s15KituraWebSocket0bC10ConnectionC4send7message8asBinaryy10Foundation4DataV_SbtF + 324
7   ADD                                 0x0000000105c7f488