csThread Class Reference
Representation of a thread of executation. More...
#include <csutil/thread.h>
Inheritance diagram for csThread:

Public Member Functions | |
virtual bool | Start ()=0 |
Start the thread. | |
virtual bool | Stop ()=0 |
Unmercifully stop the thread as soon as possible. | |
virtual bool | Wait ()=0 |
Wait for the thread to die. | |
virtual void | Yield ()=0 |
Yield Thread frees CPU time if nothing to do. | |
virtual char const * | GetLastError () const =0 |
Return the last error description, else 0 if there was none. | |
Static Public Member Functions | |
csRef< csThread > | Create (csRunnable *, uint32 options=0) |
Create a new thread. |
Detailed Description
Representation of a thread of executation.
Definition at line 77 of file thread.h.
Member Function Documentation
|
Create a new thread. Returns the new thread object. The thread begins running when the Start() method is invoked. |
|
Return the last error description, else 0 if there was none.
|
|
Start the thread. If something goes awry false is returned. |
|
Unmercifully stop the thread as soon as possible. This method performs a dirty shutdown of the thread. The thread is not given a chance to exit normally. Do not invoke this method unless you have a very good reason for doing so. In general, it is best to implement some sort of communication with threads so that you can ask them to terminate in an orderly fashion. Returns true if the thread was killed. |
|
Wait for the thread to die. Only returns once the thread has terminated. |
|
Yield Thread frees CPU time if nothing to do.
|
The documentation for this class was generated from the following file:
- csutil/thread.h
Generated for Crystal Space by doxygen 1.3.9.1