We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
os_unfair_lock
CFLock_t
1 parent 2771280 commit 439dd0dCopy full SHA for 439dd0d
CoreFoundation/Base.subproj/CFInternal.h
@@ -585,6 +585,11 @@ typedef pthread_mutex_t os_unfair_lock;
585
typedef pthread_mutex_t * os_unfair_lock_t;
586
static void os_unfair_lock_lock(os_unfair_lock_t lock) { pthread_mutex_lock(lock); }
587
static void os_unfair_lock_unlock(os_unfair_lock_t lock) { pthread_mutex_unlock(lock); }
588
+#elif defined(_WIN32)
589
+#define OS_UNFAIR_LOCK_INIT CFLockInit
590
+#define os_unfair_lock CFLock_t
591
+#define os_unfair_lock_lock __CFLock
592
+#define os_unfair_lock_unlock __CFUnlock
593
#endif // __has_include(<os/lock.h>)
594
595
#if !__HAS_DISPATCH__
0 commit comments