Gecode::Support::Thread::Run Class Reference
A real thread. More...
#include <thread.hpp>
Public Member Functions | |
Run (Runnable *r) | |
Create a new thread. | |
void | exec (void) |
Infinite loop for execution. | |
void | run (Runnable *r) |
Run a runnable object. | |
Static Public Member Functions | |
static void * | operator new (size_t s) |
Allocate memory from heap. | |
static void | operator delete (void *p) |
Free memory allocated from heap. | |
Public Attributes | |
Run * | n |
Next idle thread. | |
Runnable * | r |
Runnable object to execute. | |
Event | e |
Event to wait for next runnable object to execute. | |
Mutex | m |
Mutex for synchronization. |
Detailed Description
A real thread.
Definition at line 211 of file thread.hpp.
Constructor & Destructor Documentation
Gecode::Support::Thread::Run::Run | ( | Runnable * | r | ) | [inline] |
Member Function Documentation
void Gecode::Support::Thread::Run::exec | ( | void | ) |
Infinite loop for execution.
Definition at line 49 of file thread.cpp.
void Gecode::Support::Thread::Run::run | ( | Runnable * | r | ) | [inline] |
Run a runnable object.
Definition at line 85 of file thread.hpp.
void * Gecode::Support::Thread::Run::operator new | ( | size_t | s | ) | [inline, static] |
Allocate memory from heap.
Definition at line 108 of file thread.hpp.
void Gecode::Support::Thread::Run::operator delete | ( | void * | p | ) | [inline, static] |
Free memory allocated from heap.
Definition at line 104 of file thread.hpp.
Member Data Documentation
Next idle thread.
Definition at line 214 of file thread.hpp.
Runnable object to execute.
Definition at line 216 of file thread.hpp.
Event to wait for next runnable object to execute.
Definition at line 218 of file thread.hpp.
Mutex for synchronization.
Definition at line 220 of file thread.hpp.
The documentation for this class was generated from the following files:
- gecode/support/thread.hpp (Revision: 10939)
- gecode/support/thread/none.hpp (Revision: 12399)
- gecode/support/thread/pthreads.cpp (Revision: 9887)
- gecode/support/thread/thread.cpp (Revision: 9887)
- gecode/support/thread/thread.hpp (Revision: 9919)