examples/eqNBody/node.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "node.h"
00019
00020 #include "client.h"
00021 #include "initData.h"
00022 #include "config.h"
00023
00024 using namespace eq::base;
00025 using namespace std;
00026
00027 namespace eqNbody
00028 {
00029 bool Node::configInit( const uint32_t initID )
00030 {
00031 if( !eq::Node::configInit( initID ))
00032 return false;
00033
00034
00035 if( getIAttribute( IATTR_THREAD_MODEL ) == eq::UNDEFINED ) {
00036 setIAttribute( IATTR_THREAD_MODEL, eq::ASYNC );
00037 }
00038
00039 Config* config = static_cast< Config* >( getConfig( ));
00040 config->mapData( initID );
00041
00042 return true;
00043 }
00044
00045 bool Node::configExit()
00046 {
00047 Config* config = static_cast< Config* >( getConfig( ));
00048 config->unmapData();
00049
00050 return eq::Node::configExit();
00051 }
00052
00053 }