コード例 #1
0
bool NodeImpl::configExit()
{
	// If this is not a master node, call dispose on the engine object. 
	// Otherwise, ConfigImpl will take care of it.
	SystemManager* sys = SystemManager::instance();
	if(!sys->isMaster())
	{
		myServer->dispose();
	}
	return Node::configExit();
}
コード例 #2
0
NodeImpl::NodeImpl( eq::Config* parent ):
	Node(parent),
	myServer(NULL)
{
	//omsg("[EQ] NodeImpl::NodeImpl");

	SystemManager* sys = SystemManager::instance();

	ApplicationBase* app = sys->getApplication();
	if(!sys->isMaster())
	{
		// This is the not master node. Create a standard server instance.
		myServer = new Engine(app);
	}
}
コード例 #3
0
bool NodeImpl::configInit( const eq::uint128_t& initID )
{
	//ofmsg("[EQ] NodeImpl::configInit %1%", %initID);

	SystemManager* sys = SystemManager::instance();
	if(!sys->isMaster())
	{
		ConfigImpl* config = static_cast<ConfigImpl*>( getConfig());
		config->mapSharedData(initID);

		myServer->initialize();
		
		EqualizerDisplaySystem* eqds = (EqualizerDisplaySystem*)SystemManager::instance()->getDisplaySystem();
		eqds->finishInitialize(config, myServer);
	}

	return Node::configInit(initID);
}