MCPcopy Create free account
hub / github.com/baidu/tera / SetBackgroundThreads

Method SetBackgroundThreads

src/leveldb/util/thread_pool.cc:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void ThreadPool::SetBackgroundThreads(int num) {
52 assert(num > 0);
53 MutexLock lock(&mutex_);
54 total_threads_limit_ = num;
55}
56
57int64_t ThreadPool::Schedule(void (*function)(void*), void* arg, double priority,
58 int64_t wait_time_millisec) {

Callers 4

TabletNodeImplMethod · 0.45
InitMethod · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36