#include <searchTimer.h>
Public Member Functions | |
SearchTimer () | |
SearchTimer (const SearchTimer &src) | |
virtual | ~SearchTimer () |
void | setTimeAssign (const TimeAssigned &a) |
void | setStartTime (MilliSeconds start) |
void | setStable (bool new_stable) |
bool | isStableNow () const |
bool | hasSchedule () const |
const TimeAssigned & | timeAssigned () const |
const MilliSeconds | startTime () const |
double | elapsed (MilliSeconds now) const |
double | elapsed () const |
void | setNextIterationCoefficient (double new_value) |
void | setNodeCountHardLimit (uint64_t new_value) |
double | nextIterationCoefficient () const |
bool | stopping () const |
void | stopNow () |
SearchTimerCommon::StopReason | stopReason () |
void | throwIfNoMoreTime (uint64_t node_count) |
int | nodeAffordable () const |
void | addMonitor (const boost::shared_ptr< SearchMonitor > &) |
bool | hasMonitor () const |
const vector < boost::shared_ptr < SearchMonitor > > & | monitors () const |
int | lastMemoryUseRatio1000 () const |
Static Public Member Functions | |
static void | adjustMemoryUseLimit (double scale=0.9) |
メモリとノード数の関係を調整. More... | |
Private Types | |
typedef SearchTimerCommon::Mutex | Mutex |
Private Member Functions | |
void | testAndUpdateNextTimeTest (uint64_t node_count) |
void | throwStop () |
Private Attributes | |
boost::shared_ptr < SearchTimerCommon > | shared_timer |
Definition at line 66 of file searchTimer.h.
|
private |
Definition at line 69 of file searchTimer.h.
|
inline |
Definition at line 71 of file searchTimer.h.
|
inline |
Definition at line 72 of file searchTimer.h.
|
virtual |
Definition at line 8 of file searchTimer.cc.
void osl::search::SearchTimer::addMonitor | ( | const boost::shared_ptr< SearchMonitor > & | monitor) |
Definition at line 91 of file searchTimer.cc.
|
static |
メモリとノード数の関係を調整.
探索中は利用不可.
Definition at line 85 of file searchTimer.cc.
References maximum_node_count.
Referenced by osl::game_playing::SearchPlayer::adjust().
|
inline |
Definition at line 101 of file searchTimer.h.
References shared_timer.
|
inline |
|
inline |
Definition at line 157 of file searchTimer.h.
References shared_timer.
|
inline |
Definition at line 88 of file searchTimer.h.
References SCOPED_LOCK, and shared_timer.
Referenced by throwIfNoMoreTime().
|
inline |
Definition at line 87 of file searchTimer.h.
References shared_timer.
|
inline |
Definition at line 165 of file searchTimer.h.
References shared_timer.
|
inline |
Definition at line 161 of file searchTimer.h.
References shared_timer.
|
inline |
Definition at line 115 of file searchTimer.h.
References SCOPED_LOCK, and shared_timer.
|
inline |
Definition at line 143 of file searchTimer.h.
References osl::eval::max(), SCOPED_LOCK, and shared_timer.
|
inline |
Definition at line 107 of file searchTimer.h.
References SCOPED_LOCK, and shared_timer.
|
inline |
Definition at line 111 of file searchTimer.h.
References SCOPED_LOCK, and shared_timer.
|
inline |
Definition at line 86 of file searchTimer.h.
References shared_timer.
|
inline |
Definition at line 78 of file searchTimer.h.
References SCOPED_LOCK, and shared_timer.
|
inline |
Definition at line 74 of file searchTimer.h.
References SCOPED_LOCK, and shared_timer.
|
inline |
Definition at line 97 of file searchTimer.h.
References SCOPED_LOCK, and shared_timer.
|
inline |
Definition at line 121 of file searchTimer.h.
References shared_timer, and osl::search::SearchTimerCommon::StopByOutside.
|
inline |
Definition at line 120 of file searchTimer.h.
References shared_timer.
Referenced by osl::search::AlphaBeta2Tree< EvalT >::stopping().
|
inline |
Definition at line 126 of file searchTimer.h.
References shared_timer.
|
private |
Definition at line 23 of file searchTimer.cc.
References osl::OslConfig::lock_io, osl::eval::max(), maximum_memory_use_ratio, maximum_node_count, osl::OslConfig::memoryUseRatio(), osl::eval::min(), osl::search::SearchTimerCommon::NoMoreMemory, osl::search::SearchTimerCommon::NoMoreTime, and SCOPED_LOCK.
Referenced by throwIfNoMoreTime().
|
inline |
Definition at line 127 of file searchTimer.h.
References hasSchedule(), osl::search::SearchTimerCommon::next_node_count, SCOPED_LOCK, shared_timer, osl::search::SearchTimerCommon::stop_all, and testAndUpdateNextTimeTest().
Referenced by osl::search::AlphaBeta2Tree< EvalT >::testStop().
|
private |
Definition at line 12 of file searchTimer.cc.
References osl::search::SearchTimerCommon::NoMoreMemory.
|
inline |
Definition at line 92 of file searchTimer.h.
References SCOPED_LOCK, and shared_timer.
|
private |
Definition at line 68 of file searchTimer.h.
Referenced by elapsed(), hasMonitor(), hasSchedule(), isStableNow(), lastMemoryUseRatio1000(), monitors(), nextIterationCoefficient(), nodeAffordable(), setNextIterationCoefficient(), setNodeCountHardLimit(), setStable(), setStartTime(), setTimeAssign(), startTime(), stopNow(), stopping(), stopReason(), throwIfNoMoreTime(), and timeAssigned().