ext/oxt/detail/spin_lock_darwin.hpp in passenger-3.0.21 vs ext/oxt/detail/spin_lock_darwin.hpp in passenger-3.9.1.beta
- old
+ new
@@ -62,8 +62,12 @@
}
void unlock() {
OSSpinLockUnlock(&spin);
}
+
+ bool try_lock() {
+ return OSSpinLockTry(&spin);
+ }
};
} // namespace oxt