File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
include/swift/Threading/Impl Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,9 @@ inline void lazy_mutex_unsafe_unlock(lazy_mutex_handle &handle) {
131
131
132
132
// .. Recursive mutex support .................................................
133
133
134
- // The os_unfair_recursive_lock interface is stable, but not in the SDK. Bring
134
+ #if OS_LOCK_API_VERSION < 20250601
135
+
136
+ // The os_unfair_recursive_lock interface is stable, but not in this SDK. Bring
135
137
// our own definitions for what we need.
136
138
137
139
#define OS_UNFAIR_RECURSIVE_LOCK_INIT \
@@ -151,6 +153,8 @@ os_unfair_recursive_lock_lock_with_options(os_unfair_recursive_lock_t lock,
151
153
extern " C" void
152
154
os_unfair_recursive_lock_unlock (os_unfair_recursive_lock_t lock);
153
155
156
+ #endif // OS_UNFAIR_RECURSIVE_LOCK_INIT
157
+
154
158
inline void recursive_mutex_init (recursive_mutex_handle &handle,
155
159
bool checked = false ) {
156
160
handle = OS_UNFAIR_RECURSIVE_LOCK_INIT;
You can’t perform that action at this time.
0 commit comments