
A real thread. More...
#include <thread.hpp>
Public Member Functions | |
| Run (Runnable *r) | |
| Create a new thread. More... | |
| void | exec (void) |
| Infinite loop for execution. More... | |
| void | run (Runnable *r) |
| Run a runnable object. More... | |
Static Public Member Functions | |
| static void * | operator new (size_t s) |
| Allocate memory from heap. More... | |
| static void | operator delete (void *p) |
| Free memory allocated from heap. More... | |
Public Attributes | |
| Run * | n |
| Next idle thread. More... | |
| Runnable * | r |
| Runnable object to execute. More... | |
| Event | e |
| Event to wait for next runnable object to execute. More... | |
| Mutex | m |
| Mutex for synchronization. More... | |
A real thread.
Definition at line 282 of file thread.hpp.
|
inline |
| void Gecode::Support::Thread::Run::exec | ( | void | ) |
Infinite loop for execution.
Definition at line 54 of file thread.cpp.
|
inline |
Run a runnable object.
Definition at line 102 of file thread.hpp.
|
inlinestatic |
Allocate memory from heap.
Definition at line 126 of file thread.hpp.
|
inlinestatic |
Free memory allocated from heap.
Definition at line 122 of file thread.hpp.
| Run* Gecode::Support::Thread::Run::n |
Next idle thread.
Definition at line 285 of file thread.hpp.
| Runnable* Gecode::Support::Thread::Run::r |
Runnable object to execute.
Definition at line 287 of file thread.hpp.
| Event Gecode::Support::Thread::Run::e |
Event to wait for next runnable object to execute.
Definition at line 289 of file thread.hpp.
| Mutex Gecode::Support::Thread::Run::m |
Mutex for synchronization.
Definition at line 291 of file thread.hpp.