MXS-2008 Enforce right initialization of maxbase
Now maxbase can only be initialized via maxbase::init().
This commit is contained in:
@ -18,7 +18,6 @@
|
||||
namespace maxbase
|
||||
{
|
||||
|
||||
class MaxBase;
|
||||
class MessageQueue;
|
||||
class Worker;
|
||||
|
||||
@ -176,9 +175,8 @@ public:
|
||||
*/
|
||||
Worker* remove_from_worker();
|
||||
|
||||
public:
|
||||
// TODO: Make private once all callers have been modified.
|
||||
friend class MaxBase;
|
||||
private:
|
||||
friend class Initer;
|
||||
static bool init();
|
||||
static void finish();
|
||||
|
||||
|
@ -974,8 +974,8 @@ protected:
|
||||
*/
|
||||
static void resolve_poll_error(int fd, int err, int op);
|
||||
|
||||
public:
|
||||
// TODO: Make private once all callers have beed modified.
|
||||
private:
|
||||
friend class Initer;
|
||||
static bool init();
|
||||
static void finish();
|
||||
|
||||
|
Reference in New Issue
Block a user