casa
5.7.0-16
|
Manages a thread to do a background operation and communicates back to its controller with regard to work status. More...
#include <BackgroundThread.h>
Public Member Functions | |
BackgroundThread () | |
void | setClientCommunication (ThreadCommunication *threadController) |
bool | getResult () const |
virtual PlotMSPlot * | getPlot () |
void * | run () |
void | cancel () |
virtual | ~BackgroundThread () |
Public Member Functions inherited from casa::async::Thread | |
Thread () | |
virtual | ~Thread () |
pthread_t | getId () const |
pid_t | gettid () const |
bool | isTerminationRequested () const |
void * | join () |
void | startThread () |
virtual void | terminate () |
Protected Member Functions | |
virtual void | cancelWork () |
virtual bool | doWork ()=0 |
Protected Member Functions inherited from casa::async::Thread | |
bool | isStarted () const |
Protected Attributes | |
ThreadCommunication * | threadController |
bool | result |
Private Member Functions | |
BackgroundThread (const BackgroundThread &other) | |
Additional Inherited Members | |
Public Types inherited from casa::async::Thread | |
typedef void *(* | ThreadFunction )(void *) |
Static Protected Member Functions inherited from casa::async::Thread | |
static void * | threadFunction (void *) |
Manages a thread to do a background operation and communicates back to its controller with regard to work status.
Definition at line 40 of file BackgroundThread.h.
casa::BackgroundThread::BackgroundThread | ( | ) |
|
virtual |
|
private |
void casa::BackgroundThread::cancel | ( | ) |
|
protectedvirtual |
Reimplemented in casa::ExportThread.
|
protectedpure virtual |
Implemented in casa::CacheThread, and casa::ExportThread.
|
virtual |
Reimplemented in casa::CacheThread.
bool casa::BackgroundThread::getResult | ( | ) | const |
|
virtual |
Implements casa::async::Thread.
void casa::BackgroundThread::setClientCommunication | ( | ThreadCommunication * | threadController | ) |
|
protected |
Definition at line 53 of file BackgroundThread.h.
|
protected |
Definition at line 52 of file BackgroundThread.h.