dca_interface
6.3.4
|
Header file for functions related to start and stop the update and schedule threads. More...
Go to the source code of this file.
Functions | |
void | StartupThreads (const dca::DcaInstance &aDcaInstance, const dca::UpdateModule &aUpdateModule, dca::ScheduleEventSubscriberIntf *pSubscriber) |
Starts up the update and schedule threads and supplies the given DcaInstance and UpdateModule. More... | |
void | ShutdownThreads () |
Shuts down the previously started update and schedule threads. More... | |
void | mySleep (unsigned int ms) |
sleeps the given interval (in milliseconds) | |
Header file for functions related to start and stop the update and schedule threads.
Definition in file url_samples/urldbsample_extended/mythreads.h.
void StartupThreads | ( | const dca::DcaInstance & | aDcaInstance, |
const dca::UpdateModule & | aUpdateModule, | ||
dca::ScheduleEventSubscriberIntf * | pSubscriber | ||
) |
Starts up the update and schedule threads and supplies the given DcaInstance and UpdateModule.
[in] | aDcaInstance | An initialized DcaInstance |
[in] | aUpdateModule | An initialized UpdateModule |
[in] | pSubscriber | A pointer to an implementation of dca::ScheduleEventSubscriberIntf |
Starts up two threads
The called functions will check engine and content updates automatically and install them in the provided dca/init directory.
Schedule event information will be captured and handled by pSubscriber.
They will be stopped by a call to ShutdownThreads()
Definition at line 13 of file url_samples/urldbsample_extended/mythreads.cpp.
void ShutdownThreads | ( | ) |
Shuts down the previously started update and schedule threads.
Shutting down will stop the threads safely.
If an update is already in progress the function will return as soon as possible but will not force-terminate any thread.
Shutting down will stop the threads safely.
If an update is already in progress the function will return as soon as possible but will not force-terminate any thread.
Definition at line 20 of file customdb_samples/customdbsample_extended/mythreads.cpp.