dca_interface  6.3.4
url_samples/urldbsample_extended/mythreads.cpp
1 /* IBM Source Code */
2 /* (C) Copyright IBM Corp. 2009, 2012 */
3 /* Licensed Materials - Property of IBM */
4 /* US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA Schedule Contract with IBM Corp. */
5 
6 #include "dca/dca_base.h"
7 
9 #include "schedule_thread.h"
10 
11 using namespace dca;
12 
13 void StartupThreads(const DcaInstance& aDcaInstance, const UpdateModule& aUpdateModule, ScheduleEventSubscriberIntf* pSubscriber)
14 {
15  createPerformUpdateThread(aUpdateModule);
16  createScheduleThread(aDcaInstance, pSubscriber);
17 }
18 
19 void ShutdownThreads()
20 {
23 }
Header file for the update thread.
The update module is used to download and install DCA content and engine updates.
Definition: base_classes.h:917
void StartupThreads(const dca::DcaInstance &aDcaInstance, const dca::UpdateModule &aUpdateModule, volatile bool *schedulerErrorSignal, volatile bool *performUpdateErrorSignal)
Starts up the update and schedule threads and supplies the given DcaInstance and UpdateModule.
void createPerformUpdateThread(const dca::UpdateModule &aUpdateModule, volatile bool *errorSignal)
Starts up the update thread and supply the given UpdateModule.
void ShutdownThreads()
Shuts down the previously started update and schedule threads.
Header file for the schedule thread.
void createScheduleThread(const dca::DcaInstance &aDcaInstance, volatile bool *errorSignal)
Starts up the schedule thread and supplies the given DcaInstance.
void shutdownPerformUpdateThread()
Shuts down the previously started update thread.
This header includes all header files of the DCA Base Package.
Encapsulates the init and deinit of the DCA API.
Definition: base_classes.h:315
void shutdownScheduleThread()
Shuts down the previously started schedule thread.
An interface for schedule event notifications. Derive a class from this interface and implement onEve...
Definition: base_classes.h:526