Resolves #10.
Every X seconds (5 minutes by default) a thread which reads again the whole config file is deployed, but only if there isn't another one currently active. Every time it wakes from the select() loop, the main thread checks whether a new Configuration instance is ready (i.e. the thread has finished its work), and when it is swaps its (old) instance with the new one and calls join() on the thread.
Minor fixes are included.
Resolves #10. Every X seconds (5 minutes by default) a thread which reads again the whole config file is deployed, but only if there isn't another one currently active. Every time it wakes from the
select()
loop, the main thread checks whether a newConfiguration
instance is ready (i.e. the thread has finished its work), and when it is swaps its (old) instance with the new one and callsjoin()
on the thread. Minor fixes are included.