Searched refs:thread_cnt_ (Results 1 – 2 of 2) sorted by relevance
/system/memory/lmkd/ |
D | reaper.cpp | 164 if (thread_cnt_ > 0) { in init() 171 if (pthread_create(&thread_pool_[thread_cnt_], NULL, reaper_main, this)) { in init() 176 if (pthread_setschedparam(thread_pool_[thread_cnt_], SCHED_OTHER, ¶m)) { in init() 179 snprintf(name, sizeof(name), "lmkd_reaper%d", thread_cnt_); in init() 180 if (pthread_setname_np(thread_pool_[thread_cnt_], name)) { in init() 183 thread_cnt_++; in init() 186 if (!thread_cnt_) { in init() 191 queue_.reserve(thread_cnt_); in init() 201 if (!thread_cnt_) { in async_kill() 206 if (active_requests_ >= thread_cnt_) { in async_kill()
|
D | reaper.h | 39 int thread_cnt_; variable 45 Reaper() : active_requests_(0), thread_cnt_(0), debug_enabled_(false) {} in Reaper() 50 int thread_cnt() const { return thread_cnt_; } in thread_cnt()
|