Add TimerShops
This commit is contained in:
parent
9f4a5baebb
commit
c1e21bb8d6
6 changed files with 94 additions and 2 deletions
|
@ -18,6 +18,7 @@
|
|||
#include "evloop.hpp"
|
||||
#include "timer_items.hpp"
|
||||
#include "timer_icons.hpp"
|
||||
#include "timer_shops.hpp"
|
||||
#include "eventia/eventia.hpp"
|
||||
#include "roar11/ThreadPool.hpp"
|
||||
#include "oro/api.hpp"
|
||||
|
@ -51,8 +52,9 @@ void test(oro::Api* api, oro::OriginsDB* db) {
|
|||
eve::Eventia worker;
|
||||
pool.submit(worker.event_functor());
|
||||
|
||||
auto timer_items = worker.make_timer<TimerItems>(3.0, &pool, api, db);
|
||||
auto timer_icons = worker.make_timer<TimerIcons>(20.0, &pool, api, db);
|
||||
auto timer_items = worker.make_timer<TimerItems>(5.0, &pool, api, db);
|
||||
auto timer_icons = worker.make_timer<TimerIcons>(10.0, &pool, api, db);
|
||||
auto timer_shops = worker.make_timer<TimerShops>(15.0, &pool, api, db);
|
||||
|
||||
join(pool);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue