1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00
BadFish/src
Marco Costalba ccad601389 Avoid locking/unlocking in a tight loop
After previous patch if split point master is
waiting for job and "Use Sleeping Threads" is
false (our condition for official releases) then
it will lock/unlock splitPoint mutex in a super
tight loop badly affecting performance.

Rewrite the code to lock only when we are about
to finish. Note that race condition on slavesMask
is anyhow fixed.

No functional change.
2013-03-04 09:07:48 +01:00
..
benchmark.cpp Store moves sent with "position" UCI command 2013-03-02 13:08:50 +01:00
bitbase.cpp Update copyright year 2013-02-19 07:54:14 +01:00
bitboard.cpp Update copyright year 2013-02-19 07:54:14 +01:00
bitboard.h Update copyright year 2013-02-19 07:54:14 +01:00
bitcount.h Update copyright year 2013-02-19 07:54:14 +01:00
book.cpp Update copyright year 2013-02-19 07:54:14 +01:00
book.h Update copyright year 2013-02-19 07:54:14 +01:00
endgame.cpp Update copyright year 2013-02-19 07:54:14 +01:00
endgame.h Update copyright year 2013-02-19 07:54:14 +01:00
evaluate.cpp Merge Gary's bishop_pin patch 2013-02-20 12:39:09 +01:00
evaluate.h Update copyright year 2013-02-19 07:54:14 +01:00
main.cpp Update copyright year 2013-02-19 07:54:14 +01:00
Makefile Statically link std libraries under mingw 2013-02-21 05:51:04 +01:00
material.cpp Update copyright year 2013-02-19 07:54:14 +01:00
material.h Update copyright year 2013-02-19 07:54:14 +01:00
misc.cpp Use DD-MM-YY as date format 2013-02-21 07:19:48 +01:00
misc.h Update copyright year 2013-02-19 07:54:14 +01:00
movegen.cpp Update copyright year 2013-02-19 07:54:14 +01:00
movegen.h Update copyright year 2013-02-19 07:54:14 +01:00
movepick.cpp Rename sp to splitPoint 2013-03-01 09:44:19 +01:00
movepick.h Update copyright year 2013-02-19 07:54:14 +01:00
notation.cpp Update copyright year 2013-02-19 07:54:14 +01:00
notation.h Update copyright year 2013-02-19 07:54:14 +01:00
pawns.cpp Avoid a tricky line in shelter_storm() 2013-02-23 19:27:32 +01:00
pawns.h Update copyright year 2013-02-19 07:54:14 +01:00
platform.h Update copyright year 2013-02-19 07:54:14 +01:00
position.cpp Print leading zeroes in hash keys 2013-02-19 20:06:01 +01:00
position.h Update copyright year 2013-02-19 07:54:14 +01:00
psqtab.h Update copyright year 2013-02-19 07:54:14 +01:00
rkiss.h Update copyright year 2013-02-19 07:54:14 +01:00
search.cpp Avoid locking/unlocking in a tight loop 2013-03-04 09:07:48 +01:00
search.h Store moves sent with "position" UCI command 2013-03-02 13:08:50 +01:00
thread.cpp Avoid locking/unlocking in a tight loop 2013-03-04 09:07:48 +01:00
thread.h Store moves sent with "position" UCI command 2013-03-02 13:08:50 +01:00
timeman.cpp Update copyright year 2013-02-19 07:54:14 +01:00
timeman.h Update copyright year 2013-02-19 07:54:14 +01:00
tt.cpp Update copyright year 2013-02-19 07:54:14 +01:00
tt.h Update copyright year 2013-02-19 07:54:14 +01:00
types.h Update copyright year 2013-02-19 07:54:14 +01:00
uci.cpp Store moves sent with "position" UCI command 2013-03-02 13:08:50 +01:00
ucioption.cpp Update copyright year 2013-02-19 07:54:14 +01:00
ucioption.h Update copyright year 2013-02-19 07:54:14 +01:00