Remove iOS7 API check
Reviewed By: shergin Differential Revision: D4551186 fbshipit-source-id: ab5ec3c01bbfe0faca833960431a9739cbc1ea44
This commit is contained in:
parent
7686274e13
commit
4695508826
|
@ -217,11 +217,7 @@ static NSThread *newJavaScriptThread(void)
|
||||||
selector:@selector(runRunLoopThread)
|
selector:@selector(runRunLoopThread)
|
||||||
object:nil];
|
object:nil];
|
||||||
javaScriptThread.name = RCTJSCThreadName;
|
javaScriptThread.name = RCTJSCThreadName;
|
||||||
if ([javaScriptThread respondsToSelector:@selector(setQualityOfService:)]) {
|
javaScriptThread.qualityOfService = NSOperationQualityOfServiceUserInteractive;
|
||||||
[javaScriptThread setQualityOfService:NSOperationQualityOfServiceUserInteractive];
|
|
||||||
} else {
|
|
||||||
javaScriptThread.threadPriority = [NSThread mainThread].threadPriority;
|
|
||||||
}
|
|
||||||
[javaScriptThread start];
|
[javaScriptThread start];
|
||||||
return javaScriptThread;
|
return javaScriptThread;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue