#include <parallelSearch.h>
Public メソッド | |
JobContent () | |
JobContent (int priority, uint64_t b=0) | |
virtual | ~JobContent () |
virtual void | operator() (void)=0 |
virtual int | id () const |
void | setFinished (bool val) |
void | dump () const |
bool | isFinished () const |
void | setWorker (Worker *w) |
Worker * | getWorker () const |
void | checkStop () |
void | waitResult () |
int | getPriority () const |
uint64_t | getBlocking () const |
void | setPriority (int p) |
void | stopNow () |
void | addChildJob (const boost::shared_ptr< JobContent > &new_child) |
bool | stopping () const |
Static Public 変数 | |
static const int | DefaultPriority = 100 |
static const int | NotFoundPriority = 100000 |
Private 型 | |
typedef slist< boost::weak_ptr < JobContent > > | list_t |
Private 変数 | |
boost::condition | condition |
boost::mutex | mutex |
Worker * | worker |
volatile bool | finished |
int | priority |
uint64_t | blocking |
volatile bool | must_stop_now |
list_t | children |
parallelSearch.h の 32 行で定義されています。
typedef slist<boost::weak_ptr<JobContent> > osl::search::JobContent::list_t [private] |
parallelSearch.h の 45 行で定義されています。
osl::search::JobContent::JobContent | ( | ) | [inline] |
parallelSearch.h の 48 行で定義されています。
osl::search::JobContent::JobContent | ( | int | priority, | |
uint64_t | b = 0 | |||
) | [inline, explicit] |
osl::search::JobContent::~JobContent | ( | ) | [virtual] |
parallelSearch.cc の 59 行で定義されています。
virtual void osl::search::JobContent::operator() | ( | void | ) | [pure virtual] |
virtual int osl::search::JobContent::id | ( | ) | const [inline, virtual] |
void osl::search::JobContent::setFinished | ( | bool | val | ) | [inline] |
void osl::search::JobContent::dump | ( | ) | const |
parallelSearch.cc の 95 行で定義されています。
参照先 blocking, children, finished, id(), must_stop_now, priority, と worker.
bool osl::search::JobContent::isFinished | ( | ) | const [inline] |
void osl::search::JobContent::setWorker | ( | Worker * | w | ) | [inline] |
Worker* osl::search::JobContent::getWorker | ( | ) | const [inline] |
void osl::search::JobContent::checkStop | ( | ) |
parallelSearch.cc の 74 行で定義されています。
参照先 must_stop_now, osl::search::parallelSearch, と osl::search::ParallelSearch::stopping().
void osl::search::JobContent::waitResult | ( | ) |
int osl::search::JobContent::getPriority | ( | ) | const [inline] |
uint64_t osl::search::JobContent::getBlocking | ( | ) | const [inline] |
void osl::search::JobContent::setPriority | ( | int | p | ) | [inline] |
void osl::search::JobContent::stopNow | ( | ) |
parallelSearch.cc の 80 行で定義されています。
参照先 osl::search::Worker::block_condition, children, must_stop_now, mutex, と worker.
void osl::search::JobContent::addChildJob | ( | const boost::shared_ptr< JobContent > & | new_child | ) | [inline] |
bool osl::search::JobContent::stopping | ( | ) | const [inline] |
const int osl::search::JobContent::DefaultPriority = 100 [static] |
parallelSearch.h の 35 行で定義されています。
const int osl::search::JobContent::NotFoundPriority = 100000 [static] |
boost::condition osl::search::JobContent::condition [private] |
boost::mutex osl::search::JobContent::mutex [private] |
Worker* osl::search::JobContent::worker [private] |
volatile bool osl::search::JobContent::finished [private] |
int osl::search::JobContent::priority [private] |
uint64_t osl::search::JobContent::blocking [private] |
volatile bool osl::search::JobContent::must_stop_now [private] |
list_t osl::search::JobContent::children [private] |