X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b04fe171f0375ecd5d8a24747ca1dff85720a0ca..7e6b461318c8a779d91381531435a68ee4e8b6ed:/OSX/libsecurity_utilities/lib/threading.h?ds=inline diff --git a/OSX/libsecurity_utilities/lib/threading.h b/OSX/libsecurity_utilities/lib/threading.h index 4de9ab4f..5886f047 100644 --- a/OSX/libsecurity_utilities/lib/threading.h +++ b/OSX/libsecurity_utilities/lib/threading.h @@ -152,6 +152,13 @@ public: ~RecursiveMutex() {} }; +class NormalMutex : public Mutex +{ +public: + NormalMutex() : Mutex(normal) {} + ~NormalMutex() {} +}; + // // Condition variables // @@ -373,25 +380,6 @@ public: // class Thread { NOCOPY(Thread) -public: - class Identity { - friend class Thread; - - Identity(pthread_t id) : mIdent(id) { } - public: - Identity() { } - - static Identity current() { return pthread_self(); } - - bool operator == (const Identity &other) const - { return pthread_equal(mIdent, other.mIdent); } - - bool operator != (const Identity &other) const - { return !(*this == other); } - - private: - pthread_t mIdent; - }; public: Thread() { } // constructor @@ -405,8 +393,6 @@ protected: virtual void action() = 0; // the action to be performed private: - Identity self; // my own identity (instance constant) - static void *runner(void *); // argument to pthread_create };