mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
Fix casting in QoS setter.
Reviewed By: jasonprado Differential Revision: D2649914 fb-gh-sync-id: 064381bcc81a6a50ffa894d4a07823bb28a587e3
This commit is contained in:
parent
1a926ab807
commit
ca1f023c8d
@ -281,7 +281,7 @@ static void RCTInstallJSCProfiler(RCTBridge *bridge, JSContextRef context)
|
||||
javaScriptThread.name = @"com.facebook.React.JavaScript";
|
||||
|
||||
if ([javaScriptThread respondsToSelector:@selector(setQualityOfService:)]) {
|
||||
[(id)javaScriptThread setQualityOfService:NSOperationQualityOfServiceUserInteractive];
|
||||
[javaScriptThread setQualityOfService:NSOperationQualityOfServiceUserInteractive];
|
||||
} else {
|
||||
javaScriptThread.threadPriority = [NSThread mainThread].threadPriority;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user