Page tree
Skip to end of metadata
Go to start of metadata

void FB::BrowserHost::assertMainThread ( ) const

When running in debug mode, asserts that the call is made on the main thread.


Definition at line 221 of file BrowserHost.cpp.

Referenced by FB::ActiveX::ActiveXBrowserHost::DoDeferredRelease(), and FB::Npapi::NpapiBrowserHost::evaluateJavaScript().

222 {
223 #ifdef _DEBUG
224  if (!isMainThread()) {
225  FBLOG_FATAL("BrowserHost", "Trying to call something from the wrong thread!");
226  }
227  assert(isMainThread());
228 #endif
229 }
bool isMainThread() const
Query if this object is on the main thread.
  • No labels