-
Notifications
You must be signed in to change notification settings - Fork 8
Initialisation Order
pgjones edited this page Jun 12, 2012
·
1 revision
PreInitialise( const Configuration* ) or PreInitialise( const ConfigurationTable* )
Will occur before the semaphore, no event data can be accessed. Configuration could be NULL. There can be a large amount of CPU time between, so switching work to the PreInitialise
should be preferred.
PostInitialise( const Configuration* ) or PostInitialise( const ConfigurationTable* )
Will occur after the semaphore, event data can be accessed. Configuration could be NULL.
main
function will load and check configuration file compatibility. Then call PreInitialise(...), then later PostInitialise(...).
Singletons should be initialised (Brought into existence) by the main functions sub pre and post intialise functions.
This replaces the Intialise and LoadConfiguration functions. Objects implementing the new functions will need to check if configuration is NULL.