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.

Location:
code/branches/core5/src/libraries/core/input
Files:
2 edited

Legend:

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

    r5869 r5877  
    4141{
    4242    KeyBinderManager* KeyBinderManager::singletonPtr_s = 0;
    43     ManageScopedSingleton(KeyBinderManager, ScopeID::Graphics);
     43    ManageScopedSingleton(KeyBinderManager, ScopeID::Graphics, false);
    4444
    4545    KeyBinderManager::KeyBinderManager()
  • code/branches/core5/src/libraries/core/input/KeyDetector.cc

    r5869 r5877  
    4040    std::string KeyDetector::callbackCommand_s = "KeyDetectorKeyPressed";
    4141    KeyDetector* KeyDetector::singletonPtr_s = 0;
    42     ManageScopedSingleton(KeyDetector, ScopeID::Graphics);
     42    ManageScopedSingleton(KeyDetector, ScopeID::Graphics, false);
    4343
    4444    KeyDetector::KeyDetector()
Note: See TracChangeset for help on using the changeset viewer.