#ifndef _MERGER_H_ #define _MERGER_H_ #include "logstore.h" #include #undef try #undef end class merge_scheduler { public: merge_scheduler(logtable * ltable); ~merge_scheduler(); void start(); void shutdown(); void * memMergeThread(); void * diskMergeThread(); private: pthread_t mem_merge_thread_; pthread_t disk_merge_thread_; logtable * ltable_; const double MIN_R; }; #endif