Retire Thread::BOOKED

Start a slave as soon as is allocated.

No functional change with faked split.

Regression tested the full split() series and after
2000 games no regression and no crash.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-08-07 19:56:53 +01:00
parent 68583f4d48
commit 4a71c86270
2 changed files with 16 additions and 25 deletions

View File

@@ -70,8 +70,7 @@ struct Thread {
INITIALIZING, // Thread is initializing itself
SEARCHING, // Thread is performing work
AVAILABLE, // Thread is waiting for work
BOOKED, // Other thread (master) has booked us as a slave
WORKISWAITING, // Master has ordered us to start
WORKISWAITING, // Master has ordered us to start searching
TERMINATED // We are quitting and thread is terminated
};