Home
last modified time | relevance | path

Searched refs:tid (Results 1 - 17 of 17) sorted by relevance

/commonlibrary/ets_utils/js_concurrent_module/utils/locks/
H A Ddeadlock_helpers.cpp27 auto vertexPrinter = [](tid_t tid) { return "TID " + std::to_string(tid); }; in CreateDeadlockWarningMessage()
H A Dasync_lock.cpp204 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 Dasync_lock.h30 tid_t tid; member
H A Dlock_request.h44 LockRequest(AsyncLock* lock, tid_t tid, napi_env env, napi_ref cb, LockMode mode, const LockOptions &options,
H A Dlock_request.cpp29 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 Dasync_lock_manager.cpp69 auto holderTid = holderInfos[0].tid; in CollectLockDependencies()
74 AsyncLockDependency {waiterInfo.tid, holderTid, lockName, waiterInfo.creationStacktrace}); in CollectLockDependencies()
/commonlibrary/ets_utils/platform/default/
H A Dprocess_helper.cpp57 int GetThreadPRY(int tid) in GetThreadPRY() argument
59 int32_t pri = getpriority(PRIO_PROCESS, tid); in GetThreadPRY()
/commonlibrary/ets_utils/platform/
H A Dprocess_helper.h30 int GetThreadPRY(int tid);
/commonlibrary/ets_utils/js_sys_module/process/
H A Djs_process.h152 * 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 Djs_process.cpp400 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 Drefbase.cpp82 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 Drefbase_fuzzer.cpp35 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 Dtest_process.cpp466 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 Dtask_manager.cpp149 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 Dtask_manager.h90 bool ReadThreadInfo(pid_t tid, char* buf, uint32_t size);
/commonlibrary/ets_utils/platform/ios/
H A Dprocess_helper.cpp474 int GetThreadPRY(int tid) in GetThreadPRY() argument
/commonlibrary/ets_utils/js_concurrent_module/taskpool/test/
H A Dtest_taskpool.cpp1000 auto tid = NativeEngineTest::GetWorkerTid(handle); in HWTEST_F() local
1001 bool res = taskManager.ReadThreadInfo(tid, buf, sizeof(buf)); in HWTEST_F()

Completed in 21 milliseconds