20 #ifndef PAGESPEED_KERNEL_CACHE_CACHE_SPAMMER_H_
21 #define PAGESPEED_KERNEL_CACHE_CACHE_SPAMMER_H_
27 #include "pagespeed/kernel/base/thread_annotations.h"
30 namespace net_instaweb {
46 static void RunTests(
int num_threads,
int num_iters,
int num_inserts,
47 bool expecting_evictions,
bool do_deletes,
48 const char* value_prefix,
53 void GetDone(
bool found, StringPiece key);
60 ThreadSystem::ThreadFlags flags,
62 bool expecting_evictions,
64 const char* value_prefix,
70 bool expecting_evictions_;
72 const char* value_prefix_;
78 int pending_gets_ GUARDED_BY(mutex_);
void GetDone(bool found, StringPiece key)
Called when a Get completes.
Abstract interface for a cache.
Definition: cache_interface.h:32
static void RunTests(int num_threads, int num_iters, int num_inserts, bool expecting_evictions, bool do_deletes, const char *value_prefix, CacheInterface *cache, ThreadSystem *thread_runtime)
Definition: scoped_ptr.h:30
Definition: thread_system.h:40
Definition: cache_spammer.h:36
Base class for client thread code.
Definition: thread.h:34