| /commonlibrary/ets_utils/js_sys_module/timer/ |
| D | sys_timer.cpp | 66 uint32_t tId = timeCallbackId++; in SetTimeOutFaker() local 67 HILOG_WARN("Timer is deactivated on current JS Thread, timer id = %{public}" PRIu32, tId); in SetTimeOutFaker() 68 return Helper::NapiHelper::CreateUint32(env, tId); in SetTimeOutFaker() 137 uint32_t tId; in ClearTimer() local 138 napi_status status = napi_get_value_uint32(env, argv[0], &tId); in ClearTimer() 146 auto iter = timerTable.find(tId); in ClearTimer() 154 " TimerID:%{public}u", tId); in ClearTimer() 156 timerTable.erase(tId); in ClearTimer() 158 HILOG_INFO("ID: %{public}u, cnt: %{public}u", tId, ++deleteTimerCount); in ClearTimer() 160 HITRACE_HELPER_METER_NAME("DeleteTimer ID: " + std::to_string(tId) + ", count: " in ClearTimer() [all …]
|
| D | sys_timer.h | 51 TimerCallbackInfo(napi_env env, uint32_t tId, int32_t timeout, napi_ref callback, in TimerCallbackInfo() 53 : env_(env), tId_(tId), timeout_(timeout), callback_(callback), in TimerCallbackInfo() 81 static void DeleteTimer(uint32_t tId, TimerCallbackInfo* callbackInfo);
|
| /commonlibrary/ets_utils/js_sys_module/timer/test/ |
| D | test_timer.cpp | 172 napi_value tId = nullptr; variable 173 napi_call_function(env, nullptr, cb, argc, argv, &tId); 174 ASSERT_CHECK_VALUE_TYPE(env, tId, napi_undefined); 191 napi_value tId = nullptr; variable 192 napi_call_function(env, nullptr, setTimeoutCB, argc, argv, &tId); 193 ASSERT_CHECK_VALUE_TYPE(env, tId, napi_number); 194 napi_value argv1[] = {tId}; 216 napi_value tId = nullptr; variable 217 napi_call_function(env, nullptr, cb, argc, argv, &tId); 218 ASSERT_CHECK_VALUE_TYPE(env, tId, napi_number); [all …]
|
| D | test_timer.h | 30 static void DeleteTimer(uint32_t tId, TimerCallbackInfo* callbackInfo); 51 void TimerTest::DeleteTimer(uint32_t tId, TimerCallbackInfo* callbackInfo) in DeleteTimer() argument 53 return Timer::DeleteTimer(tId, callbackInfo); in DeleteTimer()
|
| /commonlibrary/ets_utils/js_sys_module/process/ |
| 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;
|
| D | js_process.cpp | 386 napi_value Process::GetThreadPriority(napi_env env, napi_value tid) const in GetThreadPriority() 391 napi_get_value_int32(env, tid, &proTid); in GetThreadPriority() 394 napi_throw_error(env, "-1", "Invalid tid"); in GetThreadPriority() 504 napi_value ProcessManager::GetThreadPriority(napi_env env, napi_value tid) const in GetThreadPriority() 509 napi_get_value_int32(env, tid, &proTid); in GetThreadPriority() 512 …_throw_error(env, "401", "Parameter error. The type of Parameter must be number and a valid tid."); in GetThreadPriority()
|
| /commonlibrary/ets_utils/js_concurrent_module/utils/locks/ |
| D | deadlock_helpers.cpp | 25 auto vertexPrinter = [](tid_t tid) { return "TID " + std::to_string(tid); }; in CreateDeadlockWarningMessage() argument
|
| D | async_lock.cpp | 214 napi_value tid; in CreateLockInfo() local 215 NAPI_CALL(env, napi_create_int32(env, rq->GetTid(), &tid)); in CreateLockInfo() 220 DECLARE_NAPI_PROPERTY("contextId", tid), in CreateLockInfo()
|
| D | async_lock.h | 30 tid_t tid; member
|
| D | lock_request.h | 47 …LockRequest(AsyncLock* lock, tid_t tid, napi_env env, napi_ref cb, LockMode mode, const LockOption…
|
| D | lock_request.cpp | 25 LockRequest::LockRequest(AsyncLock *lock, tid_t tid, napi_env env, napi_ref cb, LockMode mode, in LockRequest() argument 28 tid_(tid), in LockRequest()
|
| 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/ |
| D | hisysevent.yaml | 19 TID: {type: INT32, desc: tid}
|
| D | README.en.md | 1492 ├── tid # tid method 1567 | const tid:number | Obtains the TID of the process.| 1575 | getThreadPriority(v:number): number | Obtains the thread priority based on the TID.| 1799 26. tid 1801 tid(){ 1802 var ansu = Process.tid;
|
| /commonlibrary/ets_utils/js_concurrent_module/taskpool/ |
| D | dfx_hisys_event.cpp | 28 "TID", hisyseventParams->tid, in WriteFfrtAndUv()
|
| D | task_manager.cpp | 167 threadInfo->tid = worker->tid_; in GetThreadInfos() 177 napi_value tid = NapiHelper::CreateUint32(env, static_cast<uint32_t>(info->tid)); in GetThreadInfos() local 190 napi_set_named_property(env, threadInfo, "tid", tid); in GetThreadInfos() 329 // read /proc/[pid]/task/[tid]/stat to get the number of idle threads. 330 bool TaskManager::ReadThreadInfo(pid_t tid, char* buf, uint32_t size) in ReadThreadInfo() argument 335 int ret = snprintf_s(path, sizeof(path), sizeof(path) - 1, "/proc/%d/task/%d/stat", pid, tid); in ReadThreadInfo() 374 for (auto tid : tids) { in GetIdleWorkers() local 375 if (!ReadThreadInfo(tid, buf, sizeof(buf))) { in GetIdleWorkers() 1602 int32_t tid = 0; in WriteHisysForFfrtAndUv() local 1607 tid = worker->tid_; in WriteHisysForFfrtAndUv() [all …]
|
| D | dfx_hisys_event.h | 34 int32_t tid; member
|
| D | worker.h | 54 pid_t tid = 0; member
|
| D | task_manager.h | 91 bool ReadThreadInfo(pid_t tid, char* buf, uint32_t size);
|
| /commonlibrary/ets_utils/platform/default/ |
| D | process_helper.cpp | 55 int GetThreadPRY(int tid) in GetThreadPRY() argument 57 int32_t pri = getpriority(PRIO_PROCESS, tid); in GetThreadPRY()
|
| /commonlibrary/c_utils/base/src/ |
| D | refbase.cpp | 91 // it manages), the amount of strong/weak/refcout and the PID&TID. 96 …RefTracker(RefTracker* exTracker, const void* id, int strong, int weak, int ref, int pid, int tid); 108 int TID; member in OHOS::RefTracker 112 …:RefTracker(RefTracker* exTracker, const void* id, int strong, int weak, int ref, int pid, int tid) in RefTracker() argument 113 …: ptrID (id), strongRefCnt (strong), weakRefCnt (weak), refCnt (ref), PID (pid), TID (tid), exTrac… in RefTracker() 119 …UTILS_LOGI("strong: %{public}d weak: %{public}d, refcnt: %{public}d PID: %{public}d TID: %{public}… in PrintTrace() 120 strongRefCnt, weakRefCnt, refCnt, PID, TID); in PrintTrace()
|
| /commonlibrary/ets_utils/platform/ |
| D | process_helper.h | 30 int GetThreadPRY(int tid);
|
| /commonlibrary/ets_utils/js_sys_module/test/ |
| D | test_process.cpp | 471 int32_t tid = 0; variable 472 napi_get_value_int32(env, napiTid, &tid); 474 if (tid != 0) { 606 * @tc.desc: test Get thread priority based on specified tid.
|
| /commonlibrary/c_utils/base/test/fuzztest/refbase_fuzzer/ |
| 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/c_utils/docs/zh-cn/ |
| D | c-utils-guide-refbase.md | 282 (sptr pointer) call (RefBase pointer). strong: x weak: x refcnnt: x PID: xxx TID: xxx 284 (sptr pointer) call (RefBase pointer). strong: x weak: x refcnnt: x PID: xxx TID: xxx
|