thread voting | bench 1632393

This commit is contained in:
rektdie committed 2026-10-05 21:40:06 +02:00
1 parent 3a813876f4
commit 5a1bcf547c
3 files changed
+179 -6

No files matched your search

+13
View File
@@ -2,6 +2,7 @@
#include "board.h"
#include "uci.h"
#include <vector>
#include <mutex>
#include "move.h"
#include <algorithm>
#include "stopwatch.h"
@@ -55,6 +56,14 @@ void RefreshTunableCaches();
class SearchContext;
struct RootVote {
Move bestMove;
int score = 0;
int depth = 0;
};
SearchResults VoteRootMoves(const std::vector<RootVote>& votes);
class CaptHistory {
private:
MultiArray<int, 2, 6, 6, 64> historyMoves;
@@ -216,6 +225,10 @@ class SearchContext {
public:
bool doPrint = false;
int threadId = 0;
std::vector<RootVote>* voteTable = nullptr;
std::mutex* voteMutex = nullptr;
U64 nodes = 0;
U64 nodesToGo = 0;
int timeToSearch = 0;