Torque2D Reference
Public Member Functions | List of all members
ExecuteThread Class Reference
+ Inheritance diagram for ExecuteThread:

Public Member Functions

 ExecuteThread (const char *_executable, const char *_args, const char *_directory)
 
virtual void run (void *arg)
 
- Public Member Functions inherited from Thread
 Thread (ThreadRunFunction func=0, void *arg=0, bool start_thread=true, bool autodelete=false)
 
virtual ~Thread ()
 
void start ()
 
void stop ()
 Ask a thread to stop running. More...
 
bool join ()
 Block until the thread stops running. More...
 
bool checkForStop ()
 
bool isAlive ()
 Returns true if the thread is running. More...
 
ThreadIdent getId ()
 Returns the platform specific thread id for this thread. More...
 

Additional Inherited Members

- Public Attributes inherited from Thread
bool autoDelete
 If set, the thread will delete itself once it has finished running. More...
 
- Protected Attributes inherited from Thread
PlatformThreadDatamData
 
bool shouldStop
 

Constructor & Destructor Documentation

ExecuteThread ( const char *  _executable,
const char *  _args,
const char *  _directory 
)
inline

Member Function Documentation

void run ( void *  arg)
virtual

Run the Thread's entry point function. Override this method in a subclass of Thread to create threaded code in an object oriented way, and without passing a function ptr to Thread(). Also, you can call this method directly to execute the thread's code in a non-threaded way.

Reimplemented from Thread.


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