Home
last modified time | relevance | path

Searched refs:RWLock (Results 1 – 5 of 5) sorted by relevance

/system/core/libutils/include/utils/
DRWLock.h42 class RWLock {
49 RWLock();
50 explicit RWLock(const char* name);
51 explicit RWLock(int type, const char* name = nullptr);
52 ~RWLock();
62 inline explicit AutoRLock(RWLock& rwlock) : mLock(rwlock) { mLock.readLock(); } in AutoRLock()
65 RWLock& mLock;
70 inline explicit AutoWLock(RWLock& rwlock) : mLock(rwlock) { mLock.writeLock(); } in AutoWLock()
73 RWLock& mLock;
78 RWLock(const RWLock&);
[all …]
/system/core/logd/
DLogTags.cpp77 android::RWLock::AutoRLock readLock(rwlock); in RebuildFileEventLogTags()
123 android::RWLock::AutoWLock writeLock(rwlock); in RebuildFileEventLogTags()
142 android::RWLock::AutoWLock writeLock(rwlock); in AddEventLogTags()
202 android::RWLock::AutoRLock writeLock(rwlock); in ReadFileEventLogTags()
369 android::RWLock::AutoRLock readLock(const_cast<android::RWLock&>(rwlock)); in tagToName()
417 android::RWLock::AutoRLock readLock(const_cast<android::RWLock&>(rwlock)); in tagToFormat()
433 android::RWLock::AutoRLock readLock(const_cast<android::RWLock&>(rwlock)); in nameToTag()
508 android::RWLock::AutoRLock readLock(rwlock); in WritePmsgEventLogTags()
617 android::RWLock::AutoWLock writeLock(rwlock); in WriteDynamicEventLogTags()
641 android::RWLock::AutoWLock writeLock(rwlock); in WriteDebugEventLogTags()
[all …]
DLogTags.h34 android::RWLock rwlock;
/system/extras/tests/tcp_nuke_addr/
Dtcp_nuke_addr_test.cpp70 void killSockets(sockaddr_in listenaddr, int intervalMs, android::RWLock *lock) { in killSockets()
92 android::RWLock *lock, std::atomic<unsigned int> *attempts) { in connectLoop()
137 android::RWLock lock; in main()
/system/core/liblog/
Devent_tag_map.cpp126 android::RWLock rwlock;
158 android::RWLock::AutoWLock writeLock(rwlock); in emplaceUnique()
210 android::RWLock::AutoRLock readLock(const_cast<android::RWLock&>(rwlock)); in find()
218 android::RWLock::AutoRLock readLock(const_cast<android::RWLock&>(rwlock)); in find()
226 android::RWLock::AutoRLock readLock(const_cast<android::RWLock&>(rwlock)); in find()