Fennel: ResourceThread Class Reference (original) (raw)
Inheritance diagram for ResourceThread:

| Public Member Functions | |
|---|---|
| ResourceThread (std::string desc, boost::barrier &barrier, int count) | |
| virtual | ~ResourceThread () |
| int | getCompleted () |
| virtual void | run () |
| virtual void | start () |
| Spawns the OS thread. | |
| void | join () |
| Waits for the OS thread to terminate. | |
| bool | isStarted () const |
| **Returns:**true if start has been called (and subsequent join has not completed) | |
| bool | isStopped () const |
| **Returns:**opposite of isStarted() | |
| boost::thread & | getBoostThread () |
| Accesses the underlying boost::thread, e.g. | |
| std::string | getName () |
| void | setName (std::string const &s) |
| Protected Member Functions | |
| void | initAndRun () |
| virtual void | beforeRun () |
| virtual void | afterRun () |
| Protected Attributes | |
| boost::thread * | pBoostThread |
| bool | bRunning |
| std::string | name |
| Private Attributes | |
| boost::barrier & | barrier |
| int | count |
| int | completed |
| std::vector< std::string > | variants |
Detailed Description
Definition at line 59 of file ResourceTest.cpp.
Constructor & Destructor Documentation
| ResourceThread::ResourceThread | ( | std::string | desc, |
|---|---|---|---|
| boost::barrier & | barrier, | ||
| int | count | ||
| ) | [inline, explicit] |
| virtual ResourceThread::~ResourceThread | ( | | ) | [inline, virtual] | | ---------------------------------------- | - | | - | ------------------- |
Member Function Documentation
| int ResourceThread::getCompleted | ( | | ) | [inline] | | -------------------------------- | - | | - | ---------- |
| virtual void ResourceThread::run | ( | | ) | [inline, virtual] | | -------------------------------- | - | | - | ------------------- |
| void Thread::initAndRun | ( | | ) | [protected, inherited] | | ----------------------- | - | | - | ------------------------ |
| void Thread::beforeRun | ( | | ) | [protected, virtual, inherited] | | ---------------------- | - | | - | --------------------------------- |
| void Thread::afterRun | ( | | ) | [protected, virtual, inherited] | | --------------------- | - | | - | --------------------------------- |
| void Thread::start | ( | | ) | [virtual, inherited] | | ------------------ | - | | - | ---------------------- |
| void Thread::join | ( | | ) | [inherited] | | ----------------- | - | | - | ------------- |
| bool Thread::isStarted | ( | | ) | const [inline, inherited] | | ---------------------- | - | | - | --------------------------- |
| bool Thread::isStopped | ( | | ) | const [inline, inherited] | | ---------------------- | - | | - | --------------------------- |
| boost::thread& Thread::getBoostThread | ( | | ) | [inline, inherited] | | ------------------------------------- | - | | - | --------------------- |
Accesses the underlying boost::thread, e.g.
for use in a boost::thread_group. This thread must already be started.
Returns:
the underlying boost::thread
Definition at line 90 of file Thread.h.
| std::string Thread::getName | ( | | ) | [inline, inherited] | | --------------------------- | - | | - | --------------------- |
Definition at line 96 of file Thread.h.
00097 { 00098 return name; 00099 }
| void Thread::setName | ( | std::string const & | s | ) | [inline, inherited] |
|---|
Member Data Documentation
The documentation for this class was generated from the following file:
- /home/pub/open/dev/fennel/test/ResourceTest.cpp
