dca_interface  6.3.4
customdb_samples/customdbsample_extended/mythreads.h
Go to the documentation of this file.
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 
12 #ifndef MYTHREADS_H
13 #define MYTHREADS_H
14 
15 namespace dca {
16  class DcaInstance;
17  class UpdateModule;
18 }
19 
40 void StartupThreads(const dca::DcaInstance& aDcaInstance, const dca::UpdateModule& aUpdateModule,
41  volatile bool *schedulerErrorSignal, volatile bool *performUpdateErrorSignal );
42 
55 void ShutdownThreads();
56 
57 #ifndef _MSC_VER
58 // only use mySleep under linux - else use the Windows API ::Sleep function
63 void mySleep( unsigned int ms );
64 #endif
65 
66 #endif // MYTHREADS_H
void mySleep(unsigned int ms)
sleeps the given interval (in milliseconds)
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 ShutdownThreads()
Shuts down the previously started update and schedule threads.
Encapsulates the init and deinit of the DCA API.
Definition: base_classes.h:315