Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2015, 10:54:39 AM (9 years ago)
Author:
landauf
Message:

activating a scopelistener right after registering may not be the best idea after all because some other stuff (e.g. an identifier) may not yet be registered if this happens during static initialization. added helper function instead (not yet used, but this will soon happen)

File:
1 edited

Legend:

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

    r10515 r10517  
    6464            bool isActive(ScopeID::Value scope);
    6565
    66             /** Registers a listener for the given scope. If the scope is already active, the listener is activate immediately. */
     66            /** Registers a listener for the given scope. */
    6767            void addListener(ScopeListener* listener, ScopeID::Value scope);
    68             /** Unregisters a listener for the given scope. If the scope is still active, the listener is deactivated before removal. */
     68            /** Unregisters a listener for the given scope. */
    6969            void removeListener(ScopeListener* listener, ScopeID::Value scope);
     70
     71            /**
     72             * Checks for all listeners if their activity matches the activity of the scope.
     73             * If not, listeners are activated or deactivated depending on their state.
     74             */
     75            void updateListeners();
    7076
    7177        private:
Note: See TracChangeset for help on using the changeset viewer.