MXS-2008 Enforce right initialization of maxbase

Now maxbase can only be initialized via maxbase::init().
This commit is contained in:
Johan Wikman
2018-08-21 10:12:55 +03:00
parent 24ab3c099c
commit e2ba7151b7
3 changed files with 66 additions and 49 deletions

View File

@ -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();

View File

@ -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();