Add return value to Worker::init()
Cleaner to return status than exit upon failure.
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user