#ifndef VITA_COREDUMP_RWLOCKINFO_H #define VITA_COREDUMP_RWLOCKINFO_H #include #include #include #include "sync_thread.hpp" namespace vita { namespace coredump { class rwlockInfo; class rwlockInfoRwlock { friend rwlockInfo; public: uint32_t id(); uint32_t pid(); std::string& name(); uint32_t attributes(); std::string readableAttributes(); uint32_t refCount(); std::vector& readThreads(); std::vector& writeThreads(); uint32_t writeOwnerId(); uint32_t lockCount(); private: uint32_t _id; uint32_t _pid; std::string _name; uint32_t _attributes; uint32_t _ref_count; std::vector _read_threads; std::vector _write_threads; uint32_t _write_owner_id; uint32_t _lock_count; }; // rwlockInfoRwlock class rwlockInfo { public: rwlockInfo(void* buf, uint32_t size); std::vector& rwlocks(); private: std::vector _rwlocks; }; // rwlockInfo }; // coredump }; // vita #endif