Files
Stockfish/src
Marco Costalba bed4075580 Fix a (theoretical) race leading to a crash
After we release the SplitPoint lock the master, suppose
is main thread, can safely return and if a "quit" command
is pending, main thread exits and associated Thread object
is freed. So when we access master->is_searching a crash
occurs.

I have never found such a race that is of course very rare
becuase assumes that from lock releasing we go to sleep for
a time long enough for the main thread to end the search and
return. But you can never know, and anyhow a race is a race.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2012-04-06 15:30:41 +01:00
..
2012-01-30 19:19:47 +01:00
2012-04-01 11:01:13 +01:00
2011-12-31 10:46:14 +01:00
2012-03-18 11:18:38 +01:00
2012-01-01 14:46:18 +01:00
2012-04-02 09:58:29 +01:00
2012-03-07 07:39:01 +01:00
2012-04-02 09:58:29 +01:00
2012-04-02 09:58:29 +01:00
2012-03-31 19:07:11 +01:00
2012-01-22 00:42:59 +01:00
2012-01-24 07:12:19 +01:00
2012-03-31 19:07:11 +01:00
2012-04-06 14:36:39 +01:00
2012-04-06 14:36:45 +01:00
2011-12-30 13:52:16 +01:00
2011-12-30 13:52:16 +01:00
2012-04-06 14:36:45 +01:00
2012-03-27 14:26:58 +01:00
2012-01-27 19:49:38 +01:00
2012-03-31 19:07:11 +01:00
2012-04-06 14:36:45 +01:00
2012-03-17 21:44:50 +01:00