An object for running several Thread objects simultaneously. A ThreadList object is a Thread in and of itself. This allows the creation of tiered ThreadList objects by placing a lower-priority ThreadList inside of a higher-priority ThreadList.
More...
#include <mthread.h>
List of all members.
Detailed Description
An object for running several Thread objects simultaneously. A ThreadList object is a Thread in and of itself. This allows the creation of tiered ThreadList objects by placing a lower-priority ThreadList inside of a higher-priority ThreadList.
- Note:
- DO NOT place a Thread in more than one ThreadList or more than once in a single ThreadList. DO NOT place a ThreadList inside of itself or one of its children. Also, DO NOT place the main_thread_list in another ThreadList. These WILL cause memory corruption (and are silly things to do in the first place).
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
keep | If true, the ThreadList will continue to run even after it's empty, otherwise it will automatically destroy itself once all of its Thread objects have finished. |
Member Function Documentation
Adds a Thread to the ThreadList.
- Parameters:
-
t | A pointer to the Thread to be added. |
- Returns:
- true on success, false on failure.
The documentation for this class was generated from the following files: