Group parameters in a TimerSettings struct
This commit is contained in:
parent
a3153bcc66
commit
2d62b44ebc
4 changed files with 24 additions and 17 deletions
|
@ -61,6 +61,7 @@ void test(oro::Api* api, oro::OriginsDB* db, std::size_t extra_delay, std::size_
|
|||
typedef TimerOroApi<oro::DBOperation::Items> TimerItems;
|
||||
typedef TimerOroApi<oro::DBOperation::Icons> TimerIcons;
|
||||
typedef TimerOroApi<oro::DBOperation::Creators> TimerCreators;
|
||||
typedef TimerSettings TSet;
|
||||
|
||||
std::cout << "Running with " << thread_count << " worker threads\n";
|
||||
roar11::ThreadPool pool(thread_count);
|
||||
|
@ -71,10 +72,10 @@ void test(oro::Api* api, oro::OriginsDB* db, std::size_t extra_delay, std::size_
|
|||
|
||||
auto sig_int = worker.make_event<SignalInt>(&worker);
|
||||
|
||||
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);
|
||||
auto timer_items = worker.make_event<TimerItems>(TSet{0.0, ed}, &pool, api, db);
|
||||
auto timer_icons = worker.make_event<TimerIcons>(TSet{5.0, ed}, &pool, api, db);
|
||||
auto timer_shops = worker.make_event<TimerShops>(TSet{10.0, ed}, &pool, api, db);
|
||||
auto timer_creat = worker.make_event<TimerCreators>(TSet{15.0, ed}, &pool, api, db);
|
||||
|
||||
worker.wait();
|
||||
#if !defined(NDEBUG)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue