Home
last modified time | relevance | path

Searched refs:mMutex (Results 1 – 25 of 54) sorted by relevance

123

/system/netd/server/
DTrafficController.h60 int tagSocket(int sockFd, uint32_t tag, uid_t uid, uid_t callingUid) EXCLUDES(mMutex);
72 int setCounterSet(int counterSetNum, uid_t uid, uid_t callingUid) EXCLUDES(mMutex);
82 int deleteTagData(uint32_t tag, uid_t uid, uid_t callingUid) EXCLUDES(mMutex);
93 netdutils::Status swapActiveStatsMap() EXCLUDES(mMutex);
108 FirewallType type) EXCLUDES(mMutex);
110 void dump(netdutils::DumpWriter& dw, bool verbose) EXCLUDES(mMutex);
113 EXCLUDES(mMutex);
116 EXCLUDES(mMutex);
117 netdutils::Status removeUidInterfaceRules(const std::vector<int32_t>& uids) EXCLUDES(mMutex);
121 BandwidthController::IptOp op) EXCLUDES(mMutex);
[all …]
DNetlinkListener.h84 netdutils::Status subscribe(uint16_t type, const DispatchFn& fn) override EXCLUDES(mMutex);
86 netdutils::Status unsubscribe(uint16_t type) override EXCLUDES(mMutex);
96 std::mutex mMutex; variable
97 std::map<uint16_t, DispatchFn> mDispatchMap GUARDED_BY(mMutex);
DOemNetdListener.h46 std::mutex mMutex;
49 ::android::sp<::android::IBinder> mIBinder GUARDED_BY(mMutex);
52 ::android::sp<::android::IBinder> getIBinder() EXCLUDES(mMutex);
DNetlinkListener.cpp95 std::lock_guard guard(mMutex); in subscribe()
101 std::lock_guard guard(mMutex); in unsubscribe()
114 std::lock_guard guard(mMutex); in run()
/system/chre/platform/slpi/include/chre/target_platform/
Dmutex_base_impl.h25 qurt_mutex_init(&mMutex); in Mutex()
29 qurt_mutex_destroy(&mMutex); in ~Mutex()
33 qurt_mutex_lock(&mMutex); in lock()
37 return (qurt_mutex_try_lock(&mMutex) == 0); in try_lock()
41 qurt_mutex_unlock(&mMutex); in unlock()
/system/netd/resolv/
DResolverEventReporter.h54 void addDefaultListener() EXCLUDES(mMutex);
57 EXCLUDES(mMutex);
60 REQUIRES(mMutex);
61 ListenerSet getListenersImpl() const EXCLUDES(mMutex);
62 void handleBinderDied(const void* who) EXCLUDES(mMutex);
64 mutable std::mutex mMutex; variable
65 ListenerSet mListeners GUARDED_BY(mMutex);
DDns64Configuration.h101 unsigned getNextId() REQUIRES(mMutex) { return mNextId++; } in getNextId()
102 netdutils::IPPrefix getPrefix64Locked(unsigned netId) const REQUIRES(mMutex);
103 bool isDiscoveryInProgress(const Dns64Config& cfg) const REQUIRES(mMutex);
105 REQUIRES(mMutex);
109 void removeDns64Config(unsigned netId) REQUIRES(mMutex);
111 mutable std::mutex mMutex; variable
113 unsigned int mNextId GUARDED_BY(mMutex);
114 std::unordered_map<unsigned, Dns64Config> mDns64Configs GUARDED_BY(mMutex);
DDns64Configuration.cpp50 std::lock_guard guard(mMutex); in startPrefixDiscovery()
91 std::unique_lock<std::mutex> cvGuard(mMutex); in startPrefixDiscovery()
103 std::lock_guard guard(mMutex); in stopPrefixDiscovery()
108 IPPrefix Dns64Configuration::getPrefix64Locked(unsigned netId) const REQUIRES(mMutex) { in getPrefix64Locked()
116 std::lock_guard guard(mMutex); in getPrefix64()
123 std::lock_guard guard(mMutex); in dump()
187 bool Dns64Configuration::isDiscoveryInProgress(const Dns64Config& cfg) const REQUIRES(mMutex) { in isDiscoveryInProgress()
207 std::lock_guard guard(mMutex); in shouldContinueDiscovery()
211 void Dns64Configuration::removeDns64Config(unsigned netId) REQUIRES(mMutex) { in removeDns64Config()
220 std::lock_guard guard(mMutex); in recordDns64Config()
DResolverEventReporter.cpp50 std::lock_guard lock(mMutex); in addDefaultListener()
66 std::lock_guard lock(mMutex); in handleBinderDied()
77 std::lock_guard lock(mMutex); in getListenersImpl()
82 std::lock_guard lock(mMutex); in addListenerImpl()
/system/chre/util/include/chre/util/
Dfixed_size_blocking_queue_impl.h30 LockGuard<Mutex> lock(mMutex); in push()
43 LockGuard<Mutex> lock(mMutex); in push()
54 LockGuard<Mutex> lock(mMutex); in pop()
56 mConditionVariable.wait(mMutex); in pop()
66 LockGuard<Mutex> lock(mMutex); in empty()
72 LockGuard<Mutex> lock(mMutex); in size()
78 LockGuard<Mutex> lock(mMutex); in remove()
85 LockGuard<Mutex> lock(mMutex);
92 LockGuard<Mutex> lock(mMutex);
Dlock_guard_impl.h26 : mMutex(mutex) { in LockGuard()
27 mMutex.lock(); in LockGuard()
32 mMutex.unlock(); in ~LockGuard()
Dconditional_lock_guard_impl.h27 : mMutex(mutex), mShouldLock(shouldLock) { in ConditionalLockGuard()
29 mMutex.lock(); in ConditionalLockGuard()
36 mMutex.unlock(); in ~ConditionalLockGuard()
Dsynchronized_memory_pool_impl.h29 LockGuard<Mutex> lock(mMutex); in allocate()
36 LockGuard<Mutex> lock(mMutex); in deallocate()
42 LockGuard<Mutex> lock(mMutex); in getFreeBlockCount()
/system/netd/libnetdutils/include/netdutils/
DOperationLimiter.h62 bool start(KeyType key) EXCLUDES(mMutex) { in start()
63 std::lock_guard lock(mMutex); in start()
75 void finish(KeyType key) EXCLUDES(mMutex) { in finish()
76 std::lock_guard lock(mMutex); in finish()
92 std::mutex mMutex;
95 std::unordered_map<KeyType, int> mCounters GUARDED_BY(mMutex);
/system/core/libutils/include/utils/
DMutex.h151 pthread_mutex_t mMutex; variable
163 pthread_mutex_init(&mMutex, nullptr); in Mutex()
166 pthread_mutex_init(&mMutex, nullptr); in Mutex()
173 pthread_mutex_init(&mMutex, &attr); in Mutex()
176 pthread_mutex_init(&mMutex, nullptr); in Mutex()
180 pthread_mutex_destroy(&mMutex); in ~Mutex()
183 return -pthread_mutex_lock(&mMutex); in lock()
186 pthread_mutex_unlock(&mMutex); in unlock()
189 return -pthread_mutex_trylock(&mMutex); in tryLock()
198 return -pthread_mutex_timedlock(&mMutex, &ts); in timedLock()
/system/security/keystore/
Dconfirmation_manager.cpp59 lock_guard<mutex> lock(mMutex); in presentConfirmationPrompt()
109 mMutex.lock(); in cancelConfirmationPrompt()
113 mMutex.unlock(); in cancelConfirmationPrompt()
117 mMutex.unlock(); in cancelConfirmationPrompt()
146 mMutex.lock(); in finalizeTransaction()
158 mMutex.unlock(); in finalizeTransaction()
182 lock_guard<mutex> lock(mMutex); in result()
189 lock_guard<mutex> lock(mMutex); in getLatestConfirmationToken()
196 mMutex.lock(); in binderDied()
202 mMutex.unlock(); in binderDied()
[all …]
/system/chre/platform/slpi/smgr/
Dsmr_helper.cc45 LockGuard<Mutex> lock(mMutex); in releaseSync()
48 waitSuccess = mCond.wait_for(mMutex, timeout); in releaseSync()
77 LockGuard<Mutex> lock(mMutex); in waitForService()
79 mCond.wait(mMutex); in waitForService()
151 LockGuard<Mutex> lock(mMutex); in sendReqSyncUntyped()
153 waitSuccess = mCond.wait_for(mMutex, timeout); in sendReqSyncUntyped()
179 LockGuard<Mutex> lock(mMutex); in handleResp()
200 LockGuard<Mutex> lock(mMutex); in prepareForWait()
207 LockGuard<Mutex> lock(obj->mMutex); in smrReleaseCb()
225 LockGuard<Mutex> lock(obj->mMutex); in smrWaitForServiceCb()
/system/chre/platform/linux/include/chre/target_platform/
Dmutex_base_impl.h29 mMutex.lock(); in lock()
33 return mMutex.try_lock(); in try_lock()
37 mMutex.unlock(); in unlock()
Dmutex_base.h27 std::mutex mMutex; member
/system/libhidl/base/
DSynchronizedQueue.h49 return std::unique_lock<std::mutex>(mMutex); in lock()
61 std::mutex mMutex; member
73 std::unique_lock<std::mutex> lock(mMutex); in wait_pop()
89 std::unique_lock<std::mutex> lock(mMutex); in push()
104 std::unique_lock<std::mutex> lock(mMutex); in size()
/system/libhidl/transport/include/hidl/
DConcurrentMap.h34 std::unique_lock<std::mutex> _lock(mMutex); in set()
40 std::unique_lock<std::mutex> _lock(mMutex); in get()
49 std::unique_lock<std::mutex> _lock(mMutex); in erase()
54 std::unique_lock<std::mutex> _lock(mMutex); in eraseIfEqual()
67 std::unique_lock<std::mutex> lock() { return std::unique_lock<std::mutex>(mMutex); } in lock()
89 mutable std::mutex mMutex;
/system/chre/platform/linux/
Dplatform_log.cc32 std::unique_lock<std::mutex> lock(mMutex); in logLooper()
63 std::unique_lock<std::mutex> lock(mMutex); in ~PlatformLog()
79 std::unique_lock<std::mutex> lock(mMutex); in log()
/system/libhidl/libhidlcache/
DHidlCache.h67 Mutex mMutex; variable
76 Lock lock(mMutex); in lock()
91 Lock lock(mMutex); in lock()
99 Lock lock(mMutex); in unlock()
110 Lock lock(mMutex); in flush()
132 Lock lock(mMutex); in fetch()
/system/chre/platform/slpi/see/
Disland_vote_client.cc53 LockGuard<Mutex> lock(mMutex); in voteBigImage()
70 LockGuard<Mutex> lock(mMutex); in incrementBigImageRefCount()
88 LockGuard<Mutex> lock(mMutex); in decrementBigImageRefCount()
/system/core/healthd/
Dcharger_test.cpp42 std::lock_guard<std::mutex> lock(mMutex); in set()
48 std::unique_lock<std::mutex> lock(mMutex); in waitFor()
53 std::mutex mMutex; member in Atomic

123