mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 09:47:46 +00:00
Rename available_to()
Change this API to be more natural and simple. Inspired by a patch by Joona. No functional change.
This commit is contained in:
+2
-2
@@ -1593,7 +1593,7 @@ void Thread::idle_loop() {
|
||||
if ( sp
|
||||
&& sp->allSlavesSearching
|
||||
&& sp->slavesMask.count() < MAX_SLAVES_PER_SPLITPOINT
|
||||
&& available_to(sp->master))
|
||||
&& can_join(sp))
|
||||
{
|
||||
assert(this != th);
|
||||
assert(!(this_sp && this_sp->slavesMask.none()));
|
||||
@@ -1623,7 +1623,7 @@ void Thread::idle_loop() {
|
||||
|
||||
if ( sp->allSlavesSearching
|
||||
&& sp->slavesMask.count() < MAX_SLAVES_PER_SPLITPOINT
|
||||
&& available_to(sp->master))
|
||||
&& can_join(sp))
|
||||
{
|
||||
sp->slavesMask.set(idx);
|
||||
activeSplitPoint = sp;
|
||||
|
||||
Reference in New Issue
Block a user