Fix concurrency issues on event manager
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 30 Mar 2017 11:33:11 +0000 (13:33 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 30 Mar 2017 11:33:11 +0000 (13:33 +0200)
Having only one event manager is not possible
in multithreading due to the way that systemd
has to manage timer events. We observed that
timers were not armed when set in a thread
because event was polling in an other thread.

This patch provides more than one event manager
and at most as many as the number of threads
avalaible to start.

Change-Id: Iaeab353b7bc79ce61361ab73c7b197a9e69a6109
Signed-off-by: José Bollo <jose.bollo@iot.bzh>

No differences found