Home
last modified time | relevance | path

Searched refs:worker (Results 1 – 11 of 11) sorted by relevance

/base/security/device_security_level/baselib/utils/src/
Dutils_work_queue.c51 Worker *worker = NULL; in WorkQueueThread() local
65 worker = LIST_ENTRY(queue->head.next, Worker, linkNode); in WorkQueueThread()
66 RemoveListNode(&worker->linkNode); in WorkQueueThread()
70 worker->process(worker->dataBuff, worker->dataLen); in WorkQueueThread()
71 FREE(worker); in WorkQueueThread()
77 worker = LIST_ENTRY(queue->head.next, Worker, linkNode); in WorkQueueThread()
78 RemoveListNode(&worker->linkNode); in WorkQueueThread()
80 FREE(worker); in WorkQueueThread()
161 Worker *worker = MALLOC(sizeof(Worker)); in QueueWork() local
162 if (worker == NULL) { in QueueWork()
[all …]
/base/powermgr/power_manager/services/native/src/
Drunning_lock_inner.cpp61 for (auto& worker : list) { in DumpInfo() local
63 pid: %{public}d, abilityId: %{public}d", worker.use_count(), worker->GetName().c_str(), in DumpInfo()
64 worker->GetUid(), worker->GetPid(), worker->GetAbilityId()); in DumpInfo()
/base/startup/init/services/param/linux/
Dparam_service.c89 static int SendResponseMsg(ParamTaskPtr worker, const ParamMessage *msg, int result) in SendResponseMsg() argument
97 ParamTaskSendMsg(worker, (ParamMessage *)response); in SendResponseMsg()
159 static int HandleParamSet(const ParamTaskPtr worker, const ParamMessage *msg) in HandleParamSet() argument
167 if (getsockopt(LE_GetSocketFd(worker), SOL_SOCKET, SO_PEERCRED, &cr, &crSize) < 0) { in HandleParamSet()
169 return SendResponseMsg(worker, msg, -1); in HandleParamSet()
171 srcLabel.sockFd = LE_GetSocketFd(worker); in HandleParamSet()
177 return SendResponseMsg(worker, msg, ret); in HandleParamSet()
230 static int HandleParamWaitAdd(const ParamTaskPtr worker, const ParamMessage *msg) in HandleParamWaitAdd() argument
251 extData.stream = worker; in HandleParamWaitAdd()
284 static int HandleParamWatcherAdd(const ParamTaskPtr worker, const ParamMessage *msg) in HandleParamWatcherAdd() argument
[all …]
Dparam_message.h104 int ProcessMessage(const ParamTaskPtr worker, const ParamMessage *msg);
/base/powermgr/power_manager/services/native/test/unittest/src/
Drunning_lock_test.cpp92 for (auto& worker : list) { variable
94 "uid = %d, pid = %d, abilityid = %d", worker.use_count(), worker->GetName().c_str(),
95 worker->GetUid(), worker->GetPid(), worker->GetAbilityId());
104 for (auto& worker : list2) { variable
106 "uid = %d, pid = %d, abilityid = %d", worker.use_count(), worker->GetName().c_str(),
107 worker->GetUid(), worker->GetPid(), worker->GetAbilityId());
114 for (auto& worker : list2) { variable
116 "uid = %d, pid = %d, abilityid = %d", worker.use_count(), worker->GetName().c_str(),
117 worker->GetUid(), worker->GetPid(), worker->GetAbilityId());
185 std::shared_ptr<WorkTrigger> worker = std::make_shared<WorkTrigger>(1, "worker"); variable
[all …]
/base/startup/init/interfaces/kits/jskits/src/
Dnative_parameters_watch.cpp461 ParamWatcherWork *worker = new ParamWatcherWork(); in WatchCallbackWork() local
462 PARAM_JS_CHECK(worker != nullptr, return, "Failed to create worker "); in WatchCallbackWork()
463 worker->watcher = watcher; in WatchCallbackWork()
464 worker->work = nullptr; in WatchCallbackWork()
465 worker->startWatch = watcher->startWatch; in WatchCallbackWork()
471 ParamWatcherWork *worker = reinterpret_cast<ParamWatcherWork *>(data); in WatchCallbackWork() local
472 … PARAM_JS_CHECK(worker != nullptr && worker->watcher != nullptr, return, "Invalid worker "); in WatchCallbackWork()
473 int status = WatchParameter(worker->watcher->keyPrefix, in WatchCallbackWork()
474 worker->startWatch ? ProcessParamChange : nullptr, worker->watcher); in WatchCallbackWork()
476 worker->startWatch ? "on" : "off", status, worker->watcher->keyPrefix); in WatchCallbackWork()
[all …]
/base/startup/syspara_lite/interfaces/kits/js/src/
Dnative_parameters_watch.cpp436 ParamWatcherWork *worker = new ParamWatcherWork(); in WatchCallbackWork() local
437 PARAM_JS_CHECK(worker != nullptr, return, "Failed to create worker "); in WatchCallbackWork()
438 worker->watcher = watcher; in WatchCallbackWork()
439 worker->work = nullptr; in WatchCallbackWork()
440 worker->startWatch = watcher->startWatch; in WatchCallbackWork()
446 ParamWatcherWork *worker = (ParamWatcherWork *)data; in WatchCallbackWork() local
447 … PARAM_JS_CHECK(worker != nullptr && worker->watcher != nullptr, return, "Invalid worker "); in WatchCallbackWork()
448 int status = WatchParameter(worker->watcher->keyPrefix, in WatchCallbackWork()
449 worker->startWatch ? ProcessParamChange : nullptr, worker->watcher); in WatchCallbackWork()
451 worker->startWatch ? "on" : "off", status, worker->watcher->keyPrefix); in WatchCallbackWork()
[all …]
/base/update/updateservice/frameworks/js/napi/client/
Diupdate_session.h32 …virtual napi_value StartWork(napi_env env, const napi_value *args, DoWorkFunction worker, void *co…
Dupdate_session.h36 …napi_value StartWork(napi_env env, const napi_value *args, DoWorkFunction worker, void *context) o…
Dupdate_session.cpp44 napi_value UpdateSession::StartWork(napi_env env, const napi_value *args, DoWorkFunction worker, vo… in StartWork() argument
47 doWorker_ = worker; in StartWork()
/base/update/updater/services/script/threadpool/
Dthreadpool.cpp81 for (auto& worker : workers_) { in ~ThreadPool() local
82 worker.join(); in ~ThreadPool()