bool exit() { if( _initialized <= 0 ) { LBERROR << "Equalizer client library not initialized" << std::endl; return false; } if( --_initialized > 0 ) // not last return true; BOOST_FOREACH( WindowSystemIF* windowSystem, _windowSystems ) delete windowSystem; _windowSystems.clear(); Global::_nodeFactory = 0; _exitPlugins(); const bool ret = fabric::exit(); if( _logFile ) { #ifdef NDEBUG lunchbox::Log::setOutput( std::cout ); #else lunchbox::Log::setOutput( std::cerr ); #endif _logFile->close(); delete _logFile; _logFile = 0; } return ret; }
bool exit() { if( _initialized <= 0 ) { LBERROR << "Equalizer client library not initialized" << std::endl; return false; } if( --_initialized > 0 ) // not last return true; #ifdef EQ_USE_PARACOMP pcSystemFinalize(); #endif Global::_nodeFactory = 0; // _exitErrors(); _exitPlugins(); const bool ret = fabric::exit(); if( _logFile ) { #ifdef NDEBUG lunchbox::Log::setOutput( std::cout ); #else lunchbox::Log::setOutput( std::cerr ); #endif _logFile->close(); delete _logFile; _logFile = 0; } return ret; }
bool exit() { if( _initialized <= 0 ) { LBERROR << "Equalizer client library not initialized" << std::endl; return false; } if( --_initialized > 0 ) // not last return true; BOOST_FOREACH( WindowSystemIF* windowSystem, _windowSystems ) delete windowSystem; _windowSystems.clear(); Global::_nodeFactory = 0; _exitPlugins(); return fabric::exit(); }