123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #ifndef _OBJC_LOCKS_H
- #define _OBJC_LOCKS_H
- extern monitor_t classInitLock;
- extern mutex_t selLock;
- extern mutex_t cacheUpdateLock;
- extern recursive_mutex_t loadMethodLock;
- extern mutex_t crashlog_lock;
- extern spinlock_t objcMsgLogLock;
- extern mutex_t AltHandlerDebugLock;
- extern mutex_t AssociationsManagerLock;
- extern StripedMap<spinlock_t> PropertyLocks;
- extern StripedMap<spinlock_t> StructLocks;
- extern StripedMap<spinlock_t> CppObjectLocks;
- extern void SideTableLockAll();
- extern void SideTableUnlockAll();
- extern void SideTableForceResetAll();
- extern void SideTableDefineLockOrder();
- extern void SideTableLocksPrecedeLock(const void *newlock);
- extern void SideTableLocksSucceedLock(const void *oldlock);
- extern void SideTableLocksPrecedeLocks(StripedMap<spinlock_t>& newlocks);
- extern void SideTableLocksSucceedLocks(StripedMap<spinlock_t>& oldlocks);
- #if __OBJC2__
- #include "objc-locks-new.h"
- #else
- #include "objc-locks-old.h"
- #endif
- #endif
|