Commit graph

9 commits

Author SHA1 Message Date
b06456e4b0 Restore timeouts from previous run
This is quite a big update, the new feature is that when the
program starts it loads the next update time from the db if
present. If so it resumes the timers from there. Maximum wait
time is currently capped at 24h.

TimerOroApi is not templated on methods anymore, rather on
the new DBOperation enum. This is so that it has that enum
value to pass it to other functions. This could've been a
separate commit, but wth...

Magic enum allows me to iterate over an enum's values at
build time, it's useful for building the query in OriginsDB
for the SELECT in the access table
(see make_select_last_access_str()).
2020-08-16 06:28:58 +01:00
f648e3a8a2 Propagate timer exceptions to the main thread 2020-08-15 22:52:20 +01:00
5e7d0a33cc Add some debug printing 2020-08-15 14:58:20 +01:00
34040e5af1 Properly handle SIGINT to quit.
This puts ThreadPool::join() back to being private.
Eventia events now should inherit from Event, which will take
care of setting up the required callbacks so that events will
be notified about the main event loop stopping. Inheriting
from Event is currently not enforced.
2020-08-15 14:55:59 +01:00
2717817958 Attach GPL3+ licence 2020-08-10 11:22:25 +01:00
c0461f6b09 More refactoring 2020-08-09 20:47:04 +01:00
73ec4446ea Add support for long timeouts in timers 2020-08-09 20:32:25 +01:00
9df60f074b Rename classes 2020-08-09 19:28:39 +01:00
7fb055cd40 Refactor event code.
This splits the thread pool code from the event code, and
class names are now wrong (I will update them in the next
commit). Also, this disregards the roar11 vs tf library
thing, taskflow was not working anyways and I will probably
remove all the conditional compilation stuff about it for
now.
2020-08-09 19:26:18 +01:00