Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
boardstate::TranspositionTableGuard Class Reference

Contains std::mutex that other classes lock before accessing TranspositionTable. More...

#include <zobrist.hpp>

Collaboration diagram for boardstate::TranspositionTableGuard:
Collaboration graph

Public Member Functions

 TranspositionTableGuard ()=default
 
 TranspositionTableGuard (const TranspositionTableGuard &)=delete
 
TranspositionTableGuardoperator= (const TranspositionTableGuard &)=delete
 
std::unique_lock< std::mutex > GetExclusiveLock ()
 

Private Attributes

std::mutex tr_table_mutex_
 

Detailed Description

Contains std::mutex that other classes lock before accessing TranspositionTable.

Definition at line 343 of file zobrist.hpp.

Constructor & Destructor Documentation

◆ TranspositionTableGuard() [1/2]

boardstate::TranspositionTableGuard::TranspositionTableGuard ( )
default

◆ TranspositionTableGuard() [2/2]

boardstate::TranspositionTableGuard::TranspositionTableGuard ( const TranspositionTableGuard )
delete

Member Function Documentation

◆ GetExclusiveLock()

std::unique_lock< std::mutex > boardstate::TranspositionTableGuard::GetExclusiveLock ( )
inline

Definition at line 351 of file zobrist.hpp.

◆ operator=()

TranspositionTableGuard & boardstate::TranspositionTableGuard::operator= ( const TranspositionTableGuard )
delete

Member Data Documentation

◆ tr_table_mutex_

std::mutex boardstate::TranspositionTableGuard::tr_table_mutex_
mutableprivate

Definition at line 344 of file zobrist.hpp.


The documentation for this class was generated from the following file: