Home
last modified time | relevance | path

Searched full:tid (Results 1 – 25 of 30) sorted by relevance

12

/commonlibrary/ets_utils/js_sys_module/timer/
Dsys_timer.cpp66 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 …]
Dsys_timer.h51 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/
Dtest_timer.cpp172 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 …]
Dtest_timer.h30 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/
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;
Djs_process.cpp386 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/
Ddeadlock_helpers.cpp25 auto vertexPrinter = [](tid_t tid) { return "TID " + std::to_string(tid); }; in CreateDeadlockWarningMessage() argument
Dasync_lock.cpp214 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()
Dasync_lock.h30 tid_t tid; member
Dlock_request.h47 …LockRequest(AsyncLock* lock, tid_t tid, napi_env env, napi_ref cb, LockMode mode, const LockOption…
Dlock_request.cpp25 LockRequest::LockRequest(AsyncLock *lock, tid_t tid, napi_env env, napi_ref cb, LockMode mode, in LockRequest() argument
28 tid_(tid), in LockRequest()
Dasync_lock_manager.cpp69 auto holderTid = holderInfos[0].tid; in CollectLockDependencies()
74 … AsyncLockDependency {waiterInfo.tid, holderTid, lockName, waiterInfo.creationStacktrace}); in CollectLockDependencies()
/commonlibrary/ets_utils/
Dhisysevent.yaml19 TID: {type: INT32, desc: tid}
DREADME.en.md1492 ├── 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/
Ddfx_hisys_event.cpp28 "TID", hisyseventParams->tid, in WriteFfrtAndUv()
Dtask_manager.cpp167 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 …]
Ddfx_hisys_event.h34 int32_t tid; member
Dworker.h54 pid_t tid = 0; member
Dtask_manager.h91 bool ReadThreadInfo(pid_t tid, char* buf, uint32_t size);
/commonlibrary/ets_utils/platform/default/
Dprocess_helper.cpp55 int GetThreadPRY(int tid) in GetThreadPRY() argument
57 int32_t pri = getpriority(PRIO_PROCESS, tid); in GetThreadPRY()
/commonlibrary/c_utils/base/src/
Drefbase.cpp91 // 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/
Dprocess_helper.h30 int GetThreadPRY(int tid);
/commonlibrary/ets_utils/js_sys_module/test/
Dtest_process.cpp471 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/
Drefbase_fuzzer.cpp35 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/
Dc-utils-guide-refbase.md282 (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

12