Move TimerBase's g_extra_wait out to the settings file
This commit is contained in:
parent
93cfdd5586
commit
a3153bcc66
9 changed files with 52 additions and 15 deletions
|
@ -56,7 +56,7 @@ namespace {
|
|||
};
|
||||
} //unnamed namespace
|
||||
|
||||
void test(oro::Api* api, oro::OriginsDB* db, std::size_t thread_count) {
|
||||
void test(oro::Api* api, oro::OriginsDB* db, std::size_t extra_delay, std::size_t thread_count) {
|
||||
typedef TimerOroApi<oro::DBOperation::Shops> TimerShops;
|
||||
typedef TimerOroApi<oro::DBOperation::Items> TimerItems;
|
||||
typedef TimerOroApi<oro::DBOperation::Icons> TimerIcons;
|
||||
|
@ -67,13 +67,14 @@ void test(oro::Api* api, oro::OriginsDB* db, std::size_t thread_count) {
|
|||
eve::Eventia worker;
|
||||
pool.submit(worker.event_functor());
|
||||
|
||||
const double ed = static_cast<double>(extra_delay);
|
||||
|
||||
auto sig_int = worker.make_event<SignalInt>(&worker);
|
||||
|
||||
auto timer_items = worker.make_event<TimerItems>(0.0, &pool, api, db);
|
||||
auto timer_icons = worker.make_event<TimerIcons>(5.0, &pool, api, db);
|
||||
auto timer_shops = worker.make_event<TimerShops>(10.0, &pool, api, db);
|
||||
auto timer_creat = worker.make_event<TimerCreators>(15.0, &pool, api, db);
|
||||
auto timer_items = worker.make_event<TimerItems>(0.0, ed, &pool, api, db);
|
||||
auto timer_icons = worker.make_event<TimerIcons>(5.0, ed, &pool, api, db);
|
||||
auto timer_shops = worker.make_event<TimerShops>(10.0, ed, &pool, api, db);
|
||||
auto timer_creat = worker.make_event<TimerCreators>(15.0, ed, &pool, api, db);
|
||||
|
||||
worker.wait();
|
||||
#if !defined(NDEBUG)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue