Searched refs:GetTLSInstance (Results 1 – 14 of 14) sorted by relevance
111 if (length_read >= 1000000 || Random::GetTLSInstance()->OneIn(1000)) { in OnFileReadFinish()124 if (length_write >= 1000000 || Random::GetTLSInstance()->OneIn(64)) { in OnFileWriteFinish()131 return static_cast<bool>(Random::GetTLSInstance()->OneIn(1)); in ShouldBeNotifiedOnFileIO()211 std::chrono::microseconds(Random::GetTLSInstance()->Uniform(5000))); in RandomSleep()
16 return (Random::GetTLSInstance()->Next() % kFileReadSampleRate == 307); in should_sample_file_read()
25 Random* Random::GetTLSInstance() { in GetTLSInstance() function in ROCKSDB_NAMESPACE::Random
70 core_idx = Random::GetTLSInstance()->Uniform(1 << size_shift_); in AccessElementAndIndex()
90 static Random* GetTLSInstance();
25 auto* r = Random::GetTLSInstance(); in TestKillRandom()
81 uint32_t random = Random::GetTLSInstance()->Next();
282 auto rnd = Random::GetTLSInstance();
430 auto rnd = Random::GetTLSInstance();
51 rnd_(Random::GetTLSInstance()->Uniform( in BlockReadAmpBitmap()
168 Random::GetTLSInstance()->OneIn((int)info.SampleForCompression()) && in CompressBlock()
143 update_ctx = Random::GetTLSInstance()->OneIn(sampling_base); in AwaitState()
368 static_cast<uint64_t>(Random::GetTLSInstance()->Uniform(10))); in TEST_F()
89 Random::GetTLSInstance()->Reset(0xdeadbeef); in DBTestBase()