MRXT: The Multi-Robot eXploration Tool
Multi-Robot autonomous exploration and mapping simulator.
Public Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes
ClThread Class Reference

Implements a platform-independent threaded superclass. More...

#include <ClThread.h>

Inheritance diagram for ClThread:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ClThread ()
 Constructor.
virtual ~ClThread ()
 Destructor.
void printID (char *str)
 Prints the Thread ID.
int run ()
 runs the setup method and starts the thread
void stop ()
 calls the onStop method and stops the thread

Protected Attributes

int prio
size_t stacksize

Private Member Functions

virtual void execute ()
 virtual method for the thread main process.
virtual void onStop ()
 this virtual method will be executed when the stop method is called
virtual int setup ()
 this virtual method will be executed when trying to start the thead, must return 0 if ok

Static Private Member Functions

static void * EntryPoint (void *pthis)
 Thread entry point function.

Private Attributes

pthread_t m_thread
bool running
pthread_attr_t tattr
pthread_t thread_id

Detailed Description

Implements a platform-independent threaded superclass.

Derive a class from this one and implement the vitual methods:

Definition at line 31 of file ClThread.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs