<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/os_unfair_lock_flags_t/OS_UNFAIR_LOCK_FLAG_ADAPTIVE_SPIN",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration Case",
  "symbol" : {
    "kind" : "Enumeration Case",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "c:@EA@os_unfair_lock_flags_t@OS_UNFAIR_LOCK_FLAG_ADAPTIVE_SPIN"
  },
  "title" : "OS_UNFAIR_LOCK_FLAG_ADAPTIVE_SPIN"
}
-->

# OS_UNFAIR_LOCK_FLAG_ADAPTIVE_SPIN

A flag to allow an unfair lock caller to spin temporarily before blocking.

```
OS_UNFAIR_LOCK_FLAG_ADAPTIVE_SPIN
```

## Discussion

This flag is particularly useful when the holder of the lock is on core. Only use this flag for locks where the protected critical section is always extremely short.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)