neolib::message_queue& io_thread::message_queue() { if (iMessageQueue == nullptr) throw no_message_queue(); return *iMessageQueue; }
neolib::message_queue& io_thread::message_queue() { if (iMessageQueue.get() == 0) throw no_message_queue(); return *iMessageQueue; }