Gecode::Support::Runnable Class Reference
[Simple thread and synchronization support]
An interface for objects that can be run by a thread.
More...
#include <thread.hh>
Public Member Functions | |
| virtual void | run (void)=0 |
| The function that is executed when the thread starts. | |
| virtual | ~Runnable (void) |
| Destructor. | |
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. | |
Detailed Description
An interface for objects that can be run by a thread.Requires
#include <gecode/support/thread.hh>
Definition at line 75 of file thread.hh.
Constructor & Destructor Documentation
| virtual Gecode::Support::Runnable::~Runnable | ( | void | ) | [inline, virtual] |
Member Function Documentation
| virtual void Gecode::Support::Runnable::run | ( | void | ) | [pure virtual] |
The function that is executed when the thread starts.
Implemented in Gecode::Search::Parallel::BAB::Worker, and Gecode::Search::Parallel::DFS::Worker.
| void * Gecode::Support::Runnable::operator new | ( | size_t | s | ) | [inline, static] |
| void Gecode::Support::Runnable::operator delete | ( | void * | p | ) | [inline, static] |
The documentation for this class was generated from the following files:
- gecode/support/thread.hh (Revision: 9138)
- gecode/support/thread/thread.hpp (Revision: 8982)
