dca_interface  6.3.4
url_samples/urldbsample_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 
39 void StartupThreads(const dca::DcaInstance& aDcaInstance, const dca::UpdateModule& aUpdateModule, dca::ScheduleEventSubscriberIntf* pSubscriber);
40 
53 void ShutdownThreads();
54 
55 #ifndef _MSC_VER
56 // only use mySleep under linux - else use the Windows API ::Sleep function
61 void mySleep( unsigned int ms );
62 #endif
63 
64 #endif // MYTHREADS_H
The update module is used to download and install DCA content and engine updates.
Definition: base_classes.h:917
Encapsulates the init and deinit of the DCA API.
Definition: base_classes.h:315
void ShutdownThreads()
Shuts down the previously started update and schedule threads.
void mySleep(unsigned int ms)
sleeps the given interval (in milliseconds)
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.
An interface for schedule event notifications. Derive a class from this interface and implement onEve...
Definition: base_classes.h:526