MCPcopy Create free account
hub / github.com/chen3feng/toft / SetThread

Function SetThread

container/lru_cache_test.cpp:99–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99static void SetThread(LruCache<int, int> *cache) {
100 int64_t now = RealtimeClock.MicroSeconds();
101 int multiplier = 1;
102 while (RealtimeClock.MicroSeconds() - now < 500) {
103 SetCache(cache, multiplier);
104 ++multiplier;
105 }
106}
107
108static void ReadThread(LruCache<int, int> *cache) {
109 int64_t now = RealtimeClock.MicroSeconds();

Callers

nothing calls this directly

Calls 2

SetCacheFunction · 0.85
MicroSecondsMethod · 0.45

Tested by

no test coverage detected