Add return value to Worker::init()

Cleaner to return status than exit upon failure.
This commit is contained in:
Johan Wikman
2017-04-21 19:57:45 +03:00
parent adb2cc1517
commit a27bec5e88
3 changed files with 50 additions and 44 deletions

View File

@ -75,8 +75,10 @@ public:
*
* To be called once at process startup. This will cause as many workers
* to be created as the number of threads defined.
*
* @return True if the initialization succeeded, false otherwise.
*/
static void init();
static bool init();
/**
* Finalize the worker mechanism.