Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f945dc2

Browse files
committed
QoS
1 parent 480ca0d commit f945dc2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

imageoptim/Workers/CommandWorker.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ -(void)run {
8585

8686
-(void)launchTask {
8787
@try {
88+
BOOL supportsQoS = [task respondsToSelector:@selector(setQualityOfService:)];
89+
90+
if (supportsQoS) {
91+
task.qualityOfService = self.qualityOfService;
92+
}
8893
[task launch];
8994

9095
int pid = [task processIdentifier];

0 commit comments

Comments
 (0)