Home
last modified time | relevance | path

Searched refs:thread_id (Results 1 – 22 of 22) sorted by relevance

/rocksdb-6.9/util/
Dthreadpool_imp.cc66 void BGThread(size_t thread_id);
86 bool IsLastExcessiveThread(size_t thread_id) const { in IsLastExcessiveThread()
87 return HasExcessiveThread() && thread_id == bgthreads_.size() - 1; in IsLastExcessiveThread()
90 bool IsExcessiveThread(size_t thread_id) const { in IsExcessiveThread()
91 return static_cast<int>(thread_id) >= total_threads_limit_; in IsExcessiveThread()
187 void ThreadPoolImpl::Impl::BGThread(size_t thread_id) { in BGThread() argument
196 (queue_.empty() || IsExcessiveThread(thread_id))) { in BGThread()
208 if (IsLastExcessiveThread(thread_id)) { in BGThread()
275 : thread_pool_(thread_pool), thread_id_(thread_id) {} in BGThreadMetadata()
280 size_t thread_id = meta->thread_id_; in BGThreadWrapper() local
[all …]
/rocksdb-6.9/monitoring/
Dthread_status_updater.h68 thread_id.store(0); in ThreadStatusData()
85 std::atomic<uint64_t> thread_id; member
119 void SetThreadID(uint64_t thread_id);
122 void RegisterThread(ThreadStatus::ThreadType ttype, uint64_t thread_id);
Dthread_status_updater.cc19 uint64_t thread_id) { in RegisterThread() argument
23 thread_status_data_->thread_id = thread_id; in RegisterThread()
167 auto thread_id = thread_data->thread_id.load(std::memory_order_relaxed); in GetThreadList() local
197 thread_id, thread_type, in GetThreadList()
/rocksdb-6.9/test_util/
Dsync_point_impl.cc97 auto thread_id = std::this_thread::get_id(); in Process() local
102 marked_thread_id_.emplace(marked_point, thread_id); in Process()
106 if (DisabledByMarker(point, thread_id)) { in Process()
112 if (DisabledByMarker(point, thread_id)) { in Process()
Dsync_point_impl.h66 std::thread::id thread_id) { in DisabledByMarker()
69 thread_id != marked_point_iter->second; in DisabledByMarker()
/rocksdb-6.9/include/rocksdb/
Dthread_status.h113 : thread_id(_id), in ThreadStatus()
127 const uint64_t thread_id; member
Dlistener.h178 uint64_t thread_id; member
220 uint64_t thread_id; member
/rocksdb-6.9/env/
Denv_posix.cc247 uint64_t thread_id = 0; in gettid() local
248 memcpy(&thread_id, &tid, std::min(sizeof(thread_id), sizeof(tid))); in gettid()
249 return thread_id; in gettid()
Denv_hdfs.cc316 const uint64_t thread_id = (*gettid_)(); in Logv() local
348 static_cast<long long unsigned int>(thread_id)); in Logv()
/rocksdb-6.9/logging/
Dposix_logger.h88 const uint64_t thread_id = (*gettid_)(); in Logv() local
120 static_cast<long long unsigned int>(thread_id)); in Logv()
Denv_logger.h84 const uint64_t thread_id = env_->GetThreadID(); in Logv() local
110 static_cast<long long unsigned int>(thread_id)); in Logv()
/rocksdb-6.9/port/win/
Dwin_logger.cc100 const uint64_t thread_id = (*gettid_)(); in Logv() local
129 static_cast<long long unsigned int>(thread_id)); in Logv()
Denv_win.cc1270 uint64_t thread_id = GetCurrentThreadId(); in gettid() local
1271 return thread_id; in gettid()
/rocksdb-6.9/db/
Dlistener_test.cc135 ASSERT_EQ(db->GetEnv()->GetThreadID(), ci.thread_id); in OnCompactionCompleted()
136 ASSERT_GT(ci.thread_id, 0U); in OnCompactionCompleted()
234 uint64_t thread_id = env_->GetThreadID(); in OnTableFileCreated() local
241 if (thread_id == thread_status.thread_id) { in OnTableFileCreated()
287 ASSERT_EQ(db->GetEnv()->GetThreadID(), info.thread_id); in OnFlushCompleted()
288 ASSERT_GT(info.thread_id, 0U); in OnFlushCompleted()
Dflush_job.cc460 info->thread_id = db_options_.env->GetThreadID(); in GetFlushJobInfo()
Dexternal_sst_file_test.cc1044 int thread_id = thread_num.fetch_add(1); in TEST_F() local
1045 int file_idx = (thread_id / 2) * 2; in TEST_F()
1047 bool move_file = (thread_id % 3 == 0); in TEST_F()
/rocksdb-6.9/java/rocksjni/
Dcompaction_job_info.cc71 return static_cast<jlong>(compact_job_info->thread_id); in Java_org_rocksdb_CompactionJobInfo_threadId()
Dportal.h6687 static_cast<jlong>(thread_status->thread_id), in construct()
/rocksdb-6.9/docs/_posts/
D2015-10-27-getthreadlist.markdown158 const uint64_t thread_id;
/rocksdb-6.9/third-party/gtest-1.8.1/fused-src/gtest/
Dgtest-all.cc9793 DWORD thread_id; in CreateThread() local
9801 &thread_id); // Need a valid pointer for the call to work under Win98. in CreateThread()
9917 static void OnThreadExit(DWORD thread_id) { in OnThreadExit() argument
9918 GTEST_CHECK_(thread_id != 0) << ::GetLastError(); in OnThreadExit()
9927 thread_to_thread_locals->find(thread_id); in OnThreadExit()
9955 static void StartWatcherThreadFor(DWORD thread_id) { in StartWatcherThreadFor() argument
9960 thread_id); in StartWatcherThreadFor()
9969 reinterpret_cast<LPVOID>(new ThreadIdAndHandle(thread_id, thread)), in StartWatcherThreadFor()
/rocksdb-6.9/db/db_impl/
Ddb_impl_compaction_flush.cc616 info.thread_id = env_->GetThreadID(); in NotifyOnFlushBegin()
1169 info.thread_id = env_->GetThreadID(); in NotifyOnCompactionBegin()
3048 compaction_job_info->thread_id = env_->GetThreadID(); in BuildCompactionJobInfo()
/rocksdb-6.9/tools/
Ddb_bench_tool.cc1932 ts.thread_id, in PrintThreadStatus()