1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

Change poll() signature

After previous patch we don't need any more the call parameters.

This fixes a couple of warnings under MSVC.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2010-03-31 06:43:12 +01:00
parent a5a8830e97
commit 0e33fc6fd4

View file

@ -87,7 +87,7 @@ namespace {
Depth depth, bool mateThreat, int* moves, MovePicker* mp, int master, bool pvNode); Depth depth, bool mateThreat, int* moves, MovePicker* mp, int master, bool pvNode);
private: private:
friend void poll(SearchStack ss[], int ply); friend void poll();
int ActiveThreads; int ActiveThreads;
volatile bool AllThreadsShouldExit, AllThreadsShouldSleep; volatile bool AllThreadsShouldExit, AllThreadsShouldSleep;
@ -302,7 +302,7 @@ namespace {
int current_search_time(); int current_search_time();
int nps(); int nps();
void poll(SearchStack ss[], int ply); void poll();
void ponderhit(); void ponderhit();
void wait_for_stop_or_ponderhit(); void wait_for_stop_or_ponderhit();
void init_ss_array(SearchStack ss[]); void init_ss_array(SearchStack ss[]);
@ -2046,7 +2046,7 @@ namespace {
NodesSincePoll++; NodesSincePoll++;
if (NodesSincePoll >= NodesBetweenPolls) if (NodesSincePoll >= NodesBetweenPolls)
{ {
poll(ss, ply); poll();
NodesSincePoll = 0; NodesSincePoll = 0;
} }
} }
@ -2409,7 +2409,7 @@ namespace {
// looks at the time consumed so far and decides if it's time to abort the // looks at the time consumed so far and decides if it's time to abort the
// search. // search.
void poll(SearchStack ss[], int ply) { void poll() {
static int lastInfoTime; static int lastInfoTime;
int t = current_search_time(); int t = current_search_time();