Home | History | Annotate | Download | only in utils

Lines Matching defs:RWLock

42 class RWLock {
49 RWLock();
50 RWLock(const char* name);
51 RWLock(int type, const char* name = NULL);
52 ~RWLock();
62 inline AutoRLock(RWLock& rwlock) : mLock(rwlock) { mLock.readLock(); }
65 RWLock& mLock;
70 inline AutoWLock(RWLock& rwlock) : mLock(rwlock) { mLock.writeLock(); }
73 RWLock& mLock;
77 // A RWLock cannot be copied
78 RWLock(const RWLock&);
79 RWLock& operator = (const RWLock&);
84 inline RWLock::RWLock() {
87 inline RWLock::RWLock(__attribute__((unused)) const char* name) {
90 inline RWLock::RWLock(int type, __attribute__((unused)) const char* name) {
101 inline RWLock::~RWLock() {
104 inline status_t RWLock::readLock() {
107 inline status_t RWLock::tryReadLock() {
110 inline status_t RWLock::writeLock() {
113 inline status_t RWLock::tryWriteLock() {
116 inline void RWLock::unlock() {