Skip to content

Initialisation Order

pgjones edited this page Jun 12, 2012 · 1 revision

New System

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

Singletons should be initialised (Brought into existence) by the main functions sub pre and post intialise functions.

Old System

This replaces the Intialise and LoadConfiguration functions. Objects implementing the new functions will need to check if configuration is NULL.

Clone this wiki locally