///////////////////////// Document::unlock_exclusive ////////////////////////
void Document::unlock_exclusive(bool changed)
{
  assert((m_locked -= 1) == 0);
  assert((m_exclusive -= 1) == 0);

  m_lock.writerelease();
