#include <Thread.hpp>
Inheritance diagram for sfThread:
Public Types | |
typedef void(*) | FuncType (void *) |
Public Member Functions | |
sfThread (FuncType Function, void *UserData=NULL) | |
Construct the thread from a function pointer. | |
virtual | ~sfThread () |
Virtual destructor. | |
void | Launch () |
Create and run the thread. | |
void | Wait () |
Wait until the thread finishes. | |
void | Terminate () |
Terminate the thread Terminating a thread with this function is not safe, you should rather try to make the thread function terminate by itself. | |
Protected Member Functions | |
sfThread () | |
Default constructor. |
Definition at line 41 of file Win32/Thread.hpp.
sfThread::sfThread | ( | FuncType | Function, | |
void * | UserData = NULL | |||
) |
Construct the thread from a function pointer.
Function | : Entry point of the thread | |
UserData | : Data to pass to the thread function (NULL by default) |
Definition at line 48 of file Thread.cpp.
sfThread::~sfThread | ( | ) | [virtual] |
sfThread::sfThread | ( | ) | [protected] |
void sfThread::Launch | ( | ) |
void sfThread::Wait | ( | ) |
void sfThread::Terminate | ( | ) |
Terminate the thread Terminating a thread with this function is not safe, you should rather try to make the thread function terminate by itself.
Definition at line 105 of file Thread.cpp.