void MonitorLock::reset()

in cxx/fbjni/detail/CoreClasses-inl.h [98:106]


void MonitorLock::reset() noexcept {
  if (owned_) {
    Environment::current()->MonitorExit(owned_.get());
    if (Environment::current()->ExceptionCheck()) {
      abort(); // Lock mismatch
    }
    owned_ = nullptr;
  }
}