20
20
21
21
// Provide wrappers with runtime checks to make sure that the dispatch functions
22
22
// are only called on OS-es where they are supported
23
- dispatch_thread_override_info_s
23
+ static inline dispatch_thread_override_info_s
24
24
swift_dispatch_thread_get_current_override_qos_floor ()
25
25
{
26
26
if (__builtin_available (macOS 9998 , iOS 9998 , tvOS 9998 , watchOS 9998 , *)) {
@@ -30,7 +30,7 @@ swift_dispatch_thread_get_current_override_qos_floor()
30
30
return (dispatch_thread_override_info_s) {0 };
31
31
}
32
32
33
- int
33
+ static inline int
34
34
swift_dispatch_thread_override_self (qos_class_t override_qos) {
35
35
36
36
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) {
40
40
return 0 ;
41
41
}
42
42
43
- int
43
+ static inline int
44
44
swift_dispatch_lock_override_start_with_debounce (dispatch_lock_t *lock_addr,
45
45
dispatch_tid_t expected_thread, qos_class_t override_to_apply) {
46
46
@@ -51,7 +51,7 @@ swift_dispatch_lock_override_start_with_debounce(dispatch_lock_t *lock_addr,
51
51
return 0 ;
52
52
}
53
53
54
- int
54
+ static inline int
55
55
swift_dispatch_lock_override_end (qos_class_t override_to_end) {
56
56
if (__builtin_available (macOS 9998 , iOS 9998 , tvOS 9998 , watchOS 9998 , *)) {
57
57
return dispatch_lock_override_end (override_to_end);
0 commit comments