Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 5, 2009, 1:34:10 AM (15 years ago)
Author:
rgrieder
Message:

Added new an option for the ScopedSingletonManager that can allow the Singleton to fail (throw an exception).
Also improved exception-safety in Scope so that when for a Singleton fails, the Scope will deactivate all activated listeners and properly destroy itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/libraries/core/Core.cc

    r5876 r5877  
    434434    {
    435435        // singletons from other libraries
    436         ScopedSingletonManager::update(time, ScopeID::Root);
     436        ScopedSingletonManager::update<ScopeID::Root>(time);
    437437        if (this->bGraphicsLoaded_)
    438438        {
     
    442442            this->guiManager_->update(time);
    443443            // graphics singletons from other libraries
    444             ScopedSingletonManager::update(time, ScopeID::Graphics);
     444            ScopedSingletonManager::update<ScopeID::Graphics>(time);
    445445        }
    446446        // process thread commands
Note: See TracChangeset for help on using the changeset viewer.