Skip to content

Commit e4e9e1b

Browse files
seabayleaphausler
authored andcommitted
Remove use of pthread qos on Linux (#358)
1 parent 8f69050 commit e4e9e1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CoreFoundation/Stream.subproj/CFStream.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,9 @@ static CFRunLoopRef _legacyStreamRunLoop()
17611761
pthread_attr_t attr;
17621762
pthread_attr_init(&attr);
17631763
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
1764+
#if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED
17641765
pthread_attr_set_qos_class_np(&attr, qos_class_main(), 0);
1766+
#endif
17651767
pthread_t workThread;
17661768
(void) pthread_create(&workThread, &attr, _legacyStreamRunLoop_workThread, &sem);
17671769
pthread_attr_destroy(&attr);

0 commit comments

Comments
 (0)