Check the thread in all of List's methods

This commit is contained in:
Thomas Goyne 2016-01-26 12:10:10 -08:00
parent 243ae32187
commit 1cbbf1958f
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ void List::verify_attached()
if (!m_link_view->is_attached()) { if (!m_link_view->is_attached()) {
throw std::runtime_error("LinkView is not attached"); throw std::runtime_error("LinkView is not attached");
} }
m_realm->verify_thread();
} }
void List::verify_in_tranaction() void List::verify_in_tranaction()