5 #ifndef ctrlplane_db_table_walker_h
6 #define ctrlplane_db_table_walker_h
8 #include <boost/function.hpp>
9 #include <boost/dynamic_bitset.hpp>
43 bool postpone_walk =
false);
60 static bool init_ =
false;
65 char *count_str = getenv(
"DB_ITERATION_TO_YIELD");
boost::dynamic_bitset WalkerMap
static const int kIterationToYield
static int GetIterationToYield()
boost::function< bool(DBTablePartBase *, DBEntryBase *)> WalkFn
static int max_iteration_to_yield_
DBTableWalker(int task_id=-1)
WalkId WalkTable(DBTable *table, const DBRequestKey *key_start, WalkFn walker, WalkCompleteFn walk_complete, bool postpone_walk=false)
std::vector< Walker * > WalkerList
tbb::mutex walkers_mutex_
void PurgeWalker(WalkId id)
void WalkCancel(WalkId id)
static void SetIterationToYield(int count)
static const WalkId kInvalidWalkerId
void WalkResume(WalkId id)
boost::function< void(DBTableBase *)> WalkCompleteFn