dca_interface  6.3.4
customdb_samples/customdbsample_extended/schedule_thread.h File Reference

Header file for the schedule thread. More...

Go to the source code of this file.

Functions

void createScheduleThread (const dca::DcaInstance &aDcaInstance, volatile bool *errorSignal)
 Starts up the schedule thread and supplies the given DcaInstance. More...
 
void shutdownScheduleThread ()
 Shuts down the previously started schedule thread. More...
 

Detailed Description

Header file for the schedule thread.

Definition in file customdb_samples/customdbsample_extended/schedule_thread.h.

Function Documentation

◆ createScheduleThread()

void createScheduleThread ( const dca::DcaInstance aDcaInstance,
volatile bool *  errorSignal 
)

Starts up the schedule thread and supplies the given DcaInstance.

Parameters
[in]aDcaInstanceAn initialized DcaInstance
[out]errorSignalError signal that is set to true if an error occured in the call to schedule()

Start up a schedule thread that calls the aDcaInstance::schedule() method in a loop.

It can be stopped by a call to ShutdownScheduleThread()

Note
There are separate implementations for Windows and Linux distributions.
See also
shutdownScheduleThread

Definition at line 58 of file customdb_samples/customdbsample_extended/linux/schedule_thread.cpp.

◆ shutdownScheduleThread()

void shutdownScheduleThread ( )

Shuts down the previously started schedule thread.

Shutting down will stop the thread safely.

If an update is already in progress the function will return as soon as possible but will not force-terminate any thread.

Note
To force any running update processes to stop immediately a call to DcaInstance::signal() should be invoked.
There are separate implementations for Windows and Linux distributions.
See also
createScheduleThread

Definition at line 66 of file customdb_samples/customdbsample_extended/linux/schedule_thread.cpp.