mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 12:07:43 +00:00
Don't init SplitPointStack[i][j].parent
It is already set to zero because is allocated in the global storage area. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -2480,10 +2480,7 @@ namespace {
|
|||||||
// Initialize SplitPointStack locks
|
// Initialize SplitPointStack locks
|
||||||
for (i = 0; i < MAX_THREADS; i++)
|
for (i = 0; i < MAX_THREADS; i++)
|
||||||
for (int j = 0; j < ACTIVE_SPLIT_POINTS_MAX; j++)
|
for (int j = 0; j < ACTIVE_SPLIT_POINTS_MAX; j++)
|
||||||
{
|
|
||||||
SplitPointStack[i][j].parent = NULL;
|
|
||||||
lock_init(&(SplitPointStack[i][j].lock), NULL);
|
lock_init(&(SplitPointStack[i][j].lock), NULL);
|
||||||
}
|
|
||||||
|
|
||||||
// Will be set just before program exits to properly end the threads
|
// Will be set just before program exits to properly end the threads
|
||||||
AllThreadsShouldExit = false;
|
AllThreadsShouldExit = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user