Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 6, 2015, 4:38:45 PM (9 years ago)
Author:
landauf
Message:

use CoreStaticInitializationHandler to initialize core instances

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/Core.h

    r10524 r10532  
    9595            void setThreadAffinity(int limitToCPU);
    9696
    97             ApplicationPaths*         applicationPaths_;
    98             ConfigurablePaths*        configurablePaths_;
    99             DynLibManager*            dynLibManager_;
    100             SignalHandler*            signalHandler_;
    101             ConfigFileManager*        configFileManager_;
    102             Language*                 languageInstance_;
    103             Loader*                   loaderInstance_;
    104             IOConsole*                ioConsole_;
    105             TclBind*                  tclBind_;
    106             TclThreadManager*         tclThreadManager_;
    107             Scope<ScopeID::ROOT>*     rootScope_;
     97            ApplicationPaths*                applicationPaths_;
     98            ConfigurablePaths*               configurablePaths_;
     99            DynLibManager*                   dynLibManager_;
     100            SignalHandler*                   signalHandler_;
     101            ConfigFileManager*               configFileManager_;
     102            Language*                        languageInstance_;
     103            Loader*                          loaderInstance_;
     104            IOConsole*                       ioConsole_;
     105            TclBind*                         tclBind_;
     106            TclThreadManager*                tclThreadManager_;
     107            Scope<ScopeID::ROOT>*            rootScope_;
    108108            // graphical
    109             GraphicsManager*          graphicsManager_;            //!< Interface to OGRE
    110             InputManager*             inputManager_;               //!< Interface to OIS
    111             GUIManager*               guiManager_;                 //!< Interface to GUI
    112             Scope<ScopeID::GRAPHICS>* graphicsScope_;
    113             bool                      bGraphicsLoaded_;
    114             ModuleInstance*           rootModule_;
    115             std::list<ModuleInstance*>modules_;
     109            GraphicsManager*                 graphicsManager_;            //!< Interface to OGRE
     110            InputManager*                    inputManager_;               //!< Interface to OIS
     111            GUIManager*                      guiManager_;                 //!< Interface to GUI
     112            Scope<ScopeID::GRAPHICS>*        graphicsScope_;
     113            bool                             bGraphicsLoaded_;
     114
     115            CoreStaticInitializationHandler* staticInitHandler_;
     116            ModuleInstance*                  rootModule_;
     117            std::list<ModuleInstance*>       modules_;
    116118
    117119            /// Helper object that stores the config values
    118             CoreConfig*               config_;
     120            CoreConfig*                      config_;
    119121
    120122            /// Helper object that executes the surrogate destructor destroy()
    121             DestructionHelper<Core>   destructionHelper_;
     123            DestructionHelper<Core>          destructionHelper_;
    122124
    123             static Core*              singletonPtr_s;
     125            static Core*                     singletonPtr_s;
    124126    };
    125127}
Note: See TracChangeset for help on using the changeset viewer.