Fix casting in QoS setter.

Reviewed By: jasonprado

Differential Revision: D2649914

fb-gh-sync-id: 064381bcc81a6a50ffa894d4a07823bb28a587e3
This commit is contained in:
Grant Paul 2015-11-12 17:00:30 -08:00 committed by facebook-github-bot-6
parent 1a926ab807
commit ca1f023c8d

View File

@ -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;
}