Searched refs:mRef (Results 1 – 8 of 8) sorted by relevance
43 volatile int32_t mRef; variable48 inline LocSharedLock() : mRef(1) { pthread_mutex_init(&mMutex, NULL); } in LocSharedLock()50 inline LocSharedLock* share() { android_atomic_inc(&mRef); return this; } in share()52 inline void drop() { if (1 == android_atomic_dec(&mRef)) delete this; } in drop()
61 volatile int32_t mRef; variable66 inline LocSharedLock() : mRef(1) { pthread_mutex_init(&mMutex, NULL); } in LocSharedLock()68 inline LocSharedLock* share() { android_atomic_inc(&mRef); return this; } in share()70 inline void drop() { if (1 == android_atomic_dec(&mRef)) delete this; } in drop()
63 volatile int32_t mRef; variable68 inline LocSharedLock() : mRef(1) { pthread_mutex_init(&mMutex, NULL); } in LocSharedLock()70 inline LocSharedLock* share() { android_atomic_inc(&mRef); return this; } in share()72 inline void drop() { if (1 == android_atomic_dec(&mRef)) delete this; } in drop()