2020
2121// Provide wrappers with runtime checks to make sure that the dispatch functions
2222// are only called on OS-es where they are supported
23- dispatch_thread_override_info_s
23+ static inline dispatch_thread_override_info_s
2424swift_dispatch_thread_get_current_override_qos_floor ()
2525{
2626 if (__builtin_available (macOS 9998 , iOS 9998 , tvOS 9998 , watchOS 9998 , *)) {
@@ -30,7 +30,7 @@ swift_dispatch_thread_get_current_override_qos_floor()
3030 return (dispatch_thread_override_info_s) {0 };
3131}
3232
33- int
33+ static inline int
3434swift_dispatch_thread_override_self (qos_class_t override_qos) {
3535
3636 if (__builtin_available (macOS 9998 , iOS 9998 , tvOS 9998 , watchOS 9998 , *)) {
@@ -40,7 +40,7 @@ swift_dispatch_thread_override_self(qos_class_t override_qos) {
4040 return 0 ;
4141}
4242
43- int
43+ static inline int
4444swift_dispatch_lock_override_start_with_debounce (dispatch_lock_t *lock_addr,
4545 dispatch_tid_t expected_thread, qos_class_t override_to_apply) {
4646
@@ -51,7 +51,7 @@ swift_dispatch_lock_override_start_with_debounce(dispatch_lock_t *lock_addr,
5151 return 0 ;
5252}
5353
54- int
54+ static inline int
5555swift_dispatch_lock_override_end (qos_class_t override_to_end) {
5656 if (__builtin_available (macOS 9998 , iOS 9998 , tvOS 9998 , watchOS 9998 , *)) {
5757 return dispatch_lock_override_end (override_to_end);
0 commit comments