]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_utilities/lib/seccfobject.h
Security-58286.20.16.tar.gz
[apple/security.git] / OSX / libsecurity_utilities / lib / seccfobject.h
index dd59388388fea4b66f148f352215d0567d7f2e64..0cbec6b16b45bf632e2a0196c155a7b074c7100a 100644 (file)
@@ -29,6 +29,7 @@
 #include <CoreFoundation/CFRuntime.h>
 #include <new>
 #include "threading.h"
 #include <CoreFoundation/CFRuntime.h>
 #include <new>
 #include "threading.h"
+#include <os/lock.h>
 
 #if( __cplusplus <= 201103L)
 #include <stdatomic.h>
 
 #if( __cplusplus <= 201103L)
 #include <stdatomic.h>
@@ -82,7 +83,7 @@ private:
        static const size_t kAlignedRuntimeSize = SECALIGNUP(sizeof(SecRuntimeBase), 4);
 
     uint32_t mRetainCount;
        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.
 
 public:
        // For use by SecPointer only. Returns true once the first time it's called after the object has been created.