Home
last modified time | relevance | path

Searched refs:workers_ (Results 1 – 12 of 12) sorted by relevance

/third_party/mindspore/mindspore/core/mindrt/src/thread/
Dthreadpool.cc133 for (auto &worker : workers_) { in ~ThreadPool()
137 workers_.clear(); in ~ThreadPool()
159 CPU_SET(core_list[workers_.size() % core_list.size()], &mask); in CreateThreads()
164 workers_.push_back(worker); in CreateThreads()
221 int num = static_cast<int>(workers_.size()) - 1; in DistributeTask()
227 if (workers_[i]->available()) { in DistributeTask()
228 assigned.push_back(workers_[i]); in DistributeTask()
229 sum_frequency += workers_[i]->frequency(); in DistributeTask()
279 for (auto &worker : workers_) { in ActiveWorkers()
285 for (const auto &worker : workers_) { in CurrentWorker()
[all …]
Dactor_threadpool.cc88 for (auto &worker : workers_) { in ~ActorThreadPool()
94 for (auto &worker : workers_) { in ~ActorThreadPool()
98 workers_.clear(); in ~ActorThreadPool()
134 auto worker = reinterpret_cast<ActorWorker *>(workers_[i]); in PushActorToQueue()
166 CPU_SET(core_list[workers_.size() % core_list.size()], &mask); in CreateThreads()
171 workers_.push_back(worker); in CreateThreads()
Dthreadpool.h118 size_t thread_num() const { return workers_.size(); } in thread_num()
151 std::vector<Worker *> workers_; variable
/third_party/node/src/inspector/
Dworker_agent.cc36 : workers_(workers) {} in AgentWorkerInspectorDelegate()
42 workers_->WorkerCreated(title, url, waiting, target); in WorkerCreated()
46 std::shared_ptr<NodeWorkers> workers_; member in node::inspector::protocol::__anon30fb8dd00111::AgentWorkerInspectorDelegate
53 : id_(id), workers_(workers) {} in ParentInspectorSessionDelegate()
56 workers_->Detached(id_); in ~ParentInspectorSessionDelegate()
61 workers_->Send(id_, message); in SendMessageToFrontend()
66 std::shared_ptr<NodeWorkers> workers_; member in node::inspector::protocol::__anon30fb8dd00111::ParentInspectorSessionDelegate
89 workers_ = in Wire()
95 workers_->Receive(sessionId, message); in sendMessageToWorker()
106 new AgentWorkerInspectorDelegate(workers_)); in enable()
[all …]
Dworker_agent.h34 std::shared_ptr<NodeWorkers> workers_; variable
/third_party/nghttp2/src/
Dshrpx_connection_handler.cc167 workers_.clear(); in ~ConnectionHandler()
176 for (auto &worker : workers_) { in set_ticket_keys_to_worker()
186 for (auto &worker : workers_) { in worker_reopen_log_files()
198 for (auto &worker : workers_) { in worker_replace_downstream()
253 assert(workers_.size() == 0); in create_worker_thread()
309 workers_.push_back(std::move(worker)); in create_worker_thread()
312 LLOG(NOTICE, this) << "Created worker thread #" << workers_.size() - 1; in create_worker_thread()
315 for (auto &worker : workers_) { in create_worker_thread()
330 << workers_.size(); in join_worker()
333 for (auto &worker : workers_) { in join_worker()
[all …]
Dshrpx_connection_handler.h197 std::vector<std::unique_ptr<Worker>> workers_; variable
DHttpServer.cc1840 workers_.push_back(std::move(worker)); in AcceptHandler()
1851 auto &worker = workers_[next_worker_]; in accept_connection()
1865 std::vector<std::unique_ptr<Worker>> workers_; member in nghttp2::AcceptHandler
/third_party/grpc/src/core/lib/iomgr/poller/
Deventmanager_libuv.cc37 workers_.emplace_back( in LibuvEventManager()
41 workers_.back().Start(); in LibuvEventManager()
47 for (auto& th : workers_) { in ~LibuvEventManager()
Deventmanager_libuv.h79 std::vector<grpc_core::Thread> workers_; variable
/third_party/flutter/engine/flutter/fml/
Dconcurrent_message_loop.cc23 workers_.emplace_back([i, this]() { in ConcurrentMessageLoop()
33 for (auto& worker : workers_) { in ~ConcurrentMessageLoop()
Dconcurrent_message_loop.h38 std::vector<std::thread> workers_; variable