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) {
131131
132132// .. Recursive mutex support .................................................
133133
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
135137// our own definitions for what we need.
136138
137139#define OS_UNFAIR_RECURSIVE_LOCK_INIT \
@@ -151,6 +153,8 @@ os_unfair_recursive_lock_lock_with_options(os_unfair_recursive_lock_t lock,
151153extern " C" void
152154os_unfair_recursive_lock_unlock (os_unfair_recursive_lock_t lock);
153155
156+ #endif // OS_UNFAIR_RECURSIVE_LOCK_INIT
157+
154158inline void recursive_mutex_init (recursive_mutex_handle &handle,
155159 bool checked = false ) {
156160 handle = OS_UNFAIR_RECURSIVE_LOCK_INIT;
You can’t perform that action at this time.
0 commit comments