X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/fa7225c82381bac4432a6edf16f53b5370238d85..7e6b461318c8a779d91381531435a68ee4e8b6ed:/OSX/libsecurity_keychain/lib/Keychains.h diff --git a/OSX/libsecurity_keychain/lib/Keychains.h b/OSX/libsecurity_keychain/lib/Keychains.h index 0e0c87f9..507b270c 100644 --- a/OSX/libsecurity_keychain/lib/Keychains.h +++ b/OSX/libsecurity_keychain/lib/Keychains.h @@ -138,7 +138,6 @@ public: Mutex* getKeychainMutex(); Mutex* getMutexForObject() const; - ReadWriteLock* getKeychainReadWriteLock(); void aboutToDestruct(); bool operator ==(const KeychainImpl &) const; @@ -317,17 +316,12 @@ private: DefaultCredentials mCustomUnlockCreds; bool mIsInBatchMode; EventBuffer *mEventBuffer; - Mutex mMutex; + mutable Mutex mMutex; // Now that we sometimes change the database object, Db object // creation/returning needs a mutex. You should only hold this if you're // copying or changing the mDb object. Mutex mDbMutex; - - // Used to protect mDb across calls. - // Grab a read lock if you expect to read from this keychain in the future. - // The write lock is taken if we're replacing the database wholesale with something new. - ReadWriteLock mRWLock; };