Skip to content

Commit

Permalink
Issue #204: Fix incorrect priority parameter for calls to dispatch_qu…
Browse files Browse the repository at this point in the history
…eue_attr_make_with_qos_class()
  • Loading branch information
armadsen committed Aug 25, 2017
1 parent b9c2449 commit 145dff3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/MIKMIDIClock.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ - (instancetype)initWithQueue:(BOOL)createQueue

#if defined (__MAC_10_10) || defined (__IPHONE_8_0)
if (&dispatch_queue_attr_make_with_qos_class != NULL) {
attr = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INTERACTIVE, DISPATCH_QUEUE_PRIORITY_HIGH);
attr = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INTERACTIVE, 0);
}
#endif

Expand Down Expand Up @@ -461,4 +461,4 @@ - (NSMethodSignature *)methodSignatureForSelector:(SEL)sel
return [_masterClock methodSignatureForSelector:sel];
}

@end
@end
2 changes: 1 addition & 1 deletion Source/MIKMIDISequencer.m
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ - (void)startPlaybackAtTimeStamp:(MusicTimeStamp)timeStamp MIDITimeStamp:(MIDITi

#if defined (__MAC_10_10) || defined (__IPHONE_8_0)
if (&dispatch_queue_attr_make_with_qos_class != NULL) {
attr = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INITIATED, DISPATCH_QUEUE_PRIORITY_HIGH);
attr = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INITIATED, 0);
}
#endif

Expand Down
2 changes: 1 addition & 1 deletion Source/MIKMIDISynthesizer.m
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ - (void)scheduleMIDICommands:(NSArray *)commands

#if defined (__MAC_10_10) || defined (__IPHONE_8_0)
if (&dispatch_queue_attr_make_with_qos_class != NULL) {
attr = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INTERACTIVE, DISPATCH_QUEUE_PRIORITY_HIGH);
attr = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_USER_INTERACTIVE, 0);
}
#endif

Expand Down

0 comments on commit 145dff3

Please sign in to comment.