Manages a multi-threaded process.
More...
#include <ThreadMgr.h>
Manages a multi-threaded process.
- See also
- ThreadMgrImpl
Definition at line 27 of file ThreadMgr.h.
◆ ExplicitlySetNumThreads()
virtual void xms::ThreadMgr::ExplicitlySetNumThreads |
( |
int |
a_nThreads | ) |
|
|
pure virtual |
Don't have to call this and will use all processors
- Parameters
-
a_nThreads | Number of threads. |
Implemented in xms::ThreadMgrImpl.
◆ New()
◆ RunThreads()
virtual void xms::ThreadMgr::RunThreads |
( |
int |
a_nIter | ) |
|
|
pure virtual |
Execute the code in multiple threads
- Parameters
-
a_nIter | Total number of iterations for the threads to execute. |
Implemented in xms::ThreadMgrImpl.
◆ SetObserver()
virtual void xms::ThreadMgr::SetObserver |
( |
BSHP< Observer > |
a_prog | ) |
|
|
pure virtual |
◆ SetThreadLoopClass()
virtual void xms::ThreadMgr::SetThreadLoopClass |
( |
BSHP< ThreadLoop > |
a_ | ) |
|
|
pure virtual |
◆ Threads()
Vector of threads managed by this class
- Returns
- Vector of threads managed by this class
Implemented in xms::ThreadMgrImpl.
The documentation for this class was generated from the following files: