casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
casa::BackgroundThread Class Referenceabstract

Manages a thread to do a background operation and communicates back to its controller with regard to work status. More...

#include <BackgroundThread.h>

Inheritance diagram for casa::BackgroundThread:
casa::async::Thread casa::CacheThread casa::ExportThread

Public Member Functions

 BackgroundThread ()
void setClientCommunication (ThreadCommunication *threadController)
bool getResult () const
virtual PlotMSPlotgetPlot ()
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

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 *)

Detailed Description

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.

Constructor & Destructor Documentation

casa::BackgroundThread::BackgroundThread ( )
virtual casa::BackgroundThread::~BackgroundThread ( )
casa::BackgroundThread::BackgroundThread ( const BackgroundThread other)

Member Function Documentation

void casa::BackgroundThread::cancel ( )
virtual void casa::BackgroundThread::cancelWork ( )

Reimplemented in casa::ExportThread.

virtual bool casa::BackgroundThread::doWork ( )
protectedpure virtual

Implemented in casa::CacheThread, and casa::ExportThread.

virtual PlotMSPlot* casa::BackgroundThread::getPlot ( )

Reimplemented in casa::CacheThread.

bool casa::BackgroundThread::getResult ( ) const
void* casa::BackgroundThread::run ( )

Implements casa::async::Thread.

void casa::BackgroundThread::setClientCommunication ( ThreadCommunication threadController)

Member Data Documentation

bool casa::BackgroundThread::result

Definition at line 53 of file BackgroundThread.h.

ThreadCommunication* casa::BackgroundThread::threadController

Definition at line 52 of file BackgroundThread.h.

The documentation for this class was generated from the following file: