Searched refs:AsyncLockIdentity (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/utils/locks/ |
H A D | async_lock_manager.cpp | 163 AsyncLockIdentity *data; in Constructor() 177 data = new AsyncLockIdentity{false, 0, lockName}; in Constructor() 186 data = new AsyncLockIdentity{true, lockId}; in Constructor() 216 AsyncLockIdentity *identity = reinterpret_cast<AsyncLockIdentity *>(data); 243 AsyncLockIdentity *id; in LockAsync() 302 AsyncLockIdentity identity{false, 0, nameStr}; in Query() 365 const std::function<bool(const AsyncLockIdentity& identity)> &pred) in CreateLockStates() 376 AsyncLockIdentity identity = {true, entry.first, ""}; in CreateLockStates() 390 AsyncLockIdentity identity = {false, 0, entry.first}; in CreateLockStates() 409 AsyncLockIdentity identity{true, id, ""}; in Request() [all …]
|
H A D | async_lock_manager.h | 28 struct AsyncLockIdentity { struct 63 …value CreateLockStates(napi_env env, const std::function<bool(const AsyncLockIdentity& ident)> &pr… 67 static AsyncLock *FindAsyncLockUnsafe(AsyncLockIdentity *id);
|