Public Member Functions | |
PlayerThread (PlayAndSolve &ps, boost::mutex &mutex, boost::barrier &barrier, const HexState &state, double maxTime) | |
void | operator() () |
Private Attributes | |
PlayAndSolve & | m_ps |
boost::mutex & | m_mutex |
boost::barrier & | m_barrier |
const HexState & | m_state |
double | m_maxTime |
Definition at line 37 of file PlayAndSolve.hpp.
PlayAndSolve::PlayerThread::PlayerThread | ( | PlayAndSolve & | ps, | |
boost::mutex & | mutex, | |||
boost::barrier & | barrier, | |||
const HexState & | state, | |||
double | maxTime | |||
) | [inline] |
Definition at line 40 of file PlayAndSolve.hpp.
void PlayAndSolve::PlayerThread::operator() | ( | ) |
Definition at line 50 of file PlayAndSolve.cpp.
References BenzenePlayer::GenMove(), HexBoard::GetPosition(), INVALID_POINT, LogInfo(), m_barrier, PlayAndSolve::m_game, m_maxTime, m_mutex, PlayAndSolve::m_parallelResult, PlayAndSolve::m_player, PlayAndSolve::m_playerBrd, m_ps, m_state, HexState::Position(), and StoneBoard::SetPosition().
boost::barrier& PlayAndSolve::PlayerThread::m_barrier [private] |
Definition at line 50 of file PlayAndSolve.hpp.
Referenced by operator()().
double PlayAndSolve::PlayerThread::m_maxTime [private] |
Definition at line 52 of file PlayAndSolve.hpp.
Referenced by operator()().
boost::mutex& PlayAndSolve::PlayerThread::m_mutex [private] |
Definition at line 49 of file PlayAndSolve.hpp.
Referenced by operator()().
PlayAndSolve& PlayAndSolve::PlayerThread::m_ps [private] |
Definition at line 48 of file PlayAndSolve.hpp.
Referenced by operator()().
const HexState& PlayAndSolve::PlayerThread::m_state [private] |
Definition at line 51 of file PlayAndSolve.hpp.
Referenced by operator()().