#include <CoreFoundation/CFRuntime.h>
#include <new>
#include "threading.h"
+#include <os/lock.h>
#if( __cplusplus <= 201103L)
#include <stdatomic.h>
static const size_t kAlignedRuntimeSize = SECALIGNUP(sizeof(SecRuntimeBase), 4);
uint32_t mRetainCount;
- OSSpinLock mRetainSpinLock;
+ os_unfair_lock mRetainLock;
public:
// For use by SecPointer only. Returns true once the first time it's called after the object has been created.