FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
void FB::BrowserHost::assertMainThread ( ) const

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

Since
1.2.0

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.