/commonlibrary/ets_utils/js_concurrent_module/utils/locks/ |
H A D | deadlock_helpers.cpp | 27 auto vertexPrinter = [](tid_t tid) { return "TID " + std::to_string(tid); }; in CreateDeadlockWarningMessage()
|
H A D | async_lock.cpp | 204 napi_value tid; in CreateLockInfo() local 205 NAPI_CALL(env, napi_create_int32(env, rq->GetTid(), &tid)); in CreateLockInfo() 210 DECLARE_NAPI_PROPERTY("contextId", tid), in CreateLockInfo()
|
H A D | async_lock.h | 30 tid_t tid; member
|
H A D | lock_request.h | 44 LockRequest(AsyncLock* lock, tid_t tid, napi_env env, napi_ref cb, LockMode mode, const LockOptions &options,
|
H A D | lock_request.cpp | 29 LockRequest::LockRequest(AsyncLock *lock, tid_t tid, napi_env env, napi_ref cb, LockMode mode, in LockRequest() argument 32 tid_(tid), in LockRequest()
|
H A D | async_lock_manager.cpp | 69 auto holderTid = holderInfos[0].tid; in CollectLockDependencies() 74 AsyncLockDependency {waiterInfo.tid, holderTid, lockName, waiterInfo.creationStacktrace}); in CollectLockDependencies()
|
/commonlibrary/ets_utils/platform/default/ |
H A D | process_helper.cpp | 57 int GetThreadPRY(int tid) in GetThreadPRY() argument 59 int32_t pri = getpriority(PRIO_PROCESS, tid); in GetThreadPRY()
|
/commonlibrary/ets_utils/platform/ |
H A D | process_helper.h | 30 int GetThreadPRY(int tid);
|
/commonlibrary/ets_utils/js_sys_module/process/ |
H A D | js_process.h | 152 * Get the tid of the current process.
189 * Get thread priority based on specified tid.
192 * @param tid The parameter is the specified thread tid.
194 napi_value GetThreadPriority(napi_env env, napi_value tid) const;
263 * Get thread priority based on specified tid.
266 * @param tid The parameter is the specified thread tid.
268 napi_value GetThreadPriority(napi_env env, napi_value tid) const;
|
H A D | js_process.cpp | 400 napi_value Process::GetThreadPriority(napi_env env, napi_value tid) const
in GetThreadPriority() 405 napi_get_value_int32(env, tid, &proTid);
in GetThreadPriority() 408 napi_throw_error(env, "-1", "Invalid tid");
in GetThreadPriority() 518 napi_value ProcessManager::GetThreadPriority(napi_env env, napi_value tid) const
in GetThreadPriority() 523 napi_get_value_int32(env, tid, &proTid);
in GetThreadPriority() 526 napi_throw_error(env, "401", "Parameter error. The type of Parameter must be number and a valid tid.");
in GetThreadPriority()
|
/commonlibrary/c_utils/base/src/ |
H A D | refbase.cpp | 82 RefTracker(RefTracker* exTracker, const void* id, int strong, int weak, int ref, int pid, int tid); 98 RefTracker::RefTracker(RefTracker* exTracker, const void* id, int strong, int weak, int ref, int pid, int tid) in RefTracker() argument 99 : ptrID (id), strongRefCnt (strong), weakRefCnt (weak), refCnt (ref), PID (pid), TID (tid), exTrace (exTracker) in RefTracker()
|
/commonlibrary/c_utils/base/test/fuzztest/refbase_fuzzer/ |
H A D | refbase_fuzzer.cpp | 35 std::thread::id tid = this_thread::get_id(); in GetThreadId() local 36 return *reinterpret_cast<uint32_t*>(&tid); in GetThreadId()
|
/commonlibrary/ets_utils/js_sys_module/test/ |
H A D | test_process.cpp | 466 int32_t tid = 0; in HWTEST_F() local 467 napi_get_value_int32(env, napiTid, &tid); in HWTEST_F() 469 if (tid != 0) { in HWTEST_F() 601 * @tc.desc: test Get thread priority based on specified tid.
|
/commonlibrary/ets_utils/js_concurrent_module/taskpool/ |
H A D | task_manager.cpp | 149 napi_value tid = NapiHelper::CreateUint32(env, static_cast<uint32_t>(worker->tid_)); in GetThreadInfos() local 165 napi_set_named_property(env, threadInfo, "tid", tid); in GetThreadInfos() 297 // read /proc/[pid]/task/[tid]/stat to get the number of idle threads. 298 bool TaskManager::ReadThreadInfo(pid_t tid, char* buf, uint32_t size) in ReadThreadInfo() argument 303 int ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "/proc/%d/task/%d/stat", pid, tid); in ReadThreadInfo() 342 for (auto tid : tids) { in GetIdleWorkers() 343 if (!ReadThreadInfo(tid, buf, sizeof(buf))) { in GetIdleWorkers()
|
H A D | task_manager.h | 90 bool ReadThreadInfo(pid_t tid, char* buf, uint32_t size);
|
/commonlibrary/ets_utils/platform/ios/ |
H A D | process_helper.cpp | 474 int GetThreadPRY(int tid) in GetThreadPRY() argument
|
/commonlibrary/ets_utils/js_concurrent_module/taskpool/test/ |
H A D | test_taskpool.cpp | 1000 auto tid = NativeEngineTest::GetWorkerTid(handle); in HWTEST_F() local 1001 bool res = taskManager.ReadThreadInfo(tid, buf, sizeof(buf)); in HWTEST_F()
|