void Realm::verify_thread() const { if (m_scheduler && !m_scheduler->is_on_thread()) throw IncorrectThreadException(); }