-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SRWebSocket.m give Hang risk warning in Xcode 14 #661
Comments
I have the same issue |
1 similar comment
I have the same issue |
Here is the solution from @anandyadav19901990 in plain text, as macOS derives zeros from the upper case "O" in the original image: + (NSRunLoop *)SR_networkRunLoop {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
networkThread = [[_SRRunLoopThread alloc] init];
networkThread.name = @"com.squareup.SocketRocket.NetworkThread";
networkThread.qualityOfService = NSQualityOfServiceUserInitiated;
[networkThread start];
networkRunLoop = networkThread.runLoop;
});
return networkRunLoop;
} The new line is: networkThread.qualityOfService = NSQualityOfServiceUserInitiated; |
Note that the above solution applies to versions prior to 0.7.0, as it has been resolved in version 0.7.0: Please close this issue and mark as resolved. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
error:- Thread running at QOS_CLASS_USER_INITIATED waiting on a lower QoS thread running at QOS_CLASS_DEFAULT. Investigate ways to avoid priority inversions
The text was updated successfully, but these errors were encountered: