// Author: Jochen Kerdels #ifndef TMUTEXPOOL_H #define TMUTEXPOOL_H #include #include class TMutexPool : public TObject { ClassDef(TMutexPool, 0); // A pool of mutexes that can be shared public: TMutexPool(UInt_t poolSize = 16); ~TMutexPool(); TMutex* operator[](UInt_t const& index); protected: private: UInt_t fPoolSize; // number of mutexes in the pool TMutex **fPool; // array of TMutex objects }; #endif // TMUTEXPOOL_H