1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00:00
BadFish/src
Marco Costalba d58176bfea Use a timer to avoid polling
The timer will be fired asynchronously to handle
time management flags, while other threads are
searching.

This implementation uses a thread waiting on a
timed condition variable instead of real timers.
This approach allow to reduce platform dependant
code to a minimum and also is the most portable given
that timers libraries are very different among platforms
and also the best ones are not compatible with olds
Windows.

Also retire the now unused polling code.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
2011-11-05 18:19:38 +01:00
..
benchmark.cpp Tidy up benchmark.cpp 2011-07-24 08:53:36 +01:00
bitbase.cpp Better naming borrowed from Critter 2011-10-02 10:16:59 +01:00
bitboard.cpp Further touches to magic bitboards code 2011-11-01 10:38:01 +01:00
bitboard.h Further touches to magic bitboards code 2011-11-01 10:38:01 +01:00
bitcount.h Move all enum types definitions to types.h 2011-02-23 21:52:55 +01:00
book.cpp Small touches to book.cpp 2011-10-03 14:18:30 +01:00
book.h Small touches to book.cpp 2011-10-03 14:18:30 +01:00
endgame.cpp Replaced macros Min() and Max() with corresponding STL algorithms std::min() and std::max() 2011-10-31 00:38:44 -04:00
endgame.h Better naming borrowed from Critter 2011-10-02 10:16:59 +01:00
evaluate.cpp Replaced macros Min() and Max() with corresponding STL algorithms std::min() and std::max() 2011-10-31 00:38:44 -04:00
evaluate.h Move pawn and material tables under Thread class 2011-04-24 17:07:22 +01:00
history.h Replaced macros Min() and Max() with corresponding STL algorithms std::min() and std::max() 2011-10-31 00:38:44 -04:00
lock.h Use a timer to avoid polling 2011-11-05 18:19:38 +01:00
main.cpp Rename execute_uci_command() to uci_loop() 2011-07-24 08:12:07 +01:00
Makefile Link Time Optimization doesn't needs -static 2011-10-09 08:24:56 +01:00
material.cpp Replaced macros Min() and Max() with corresponding STL algorithms std::min() and std::max() 2011-10-31 00:38:44 -04:00
material.h Remove duplicated enum Phase definition 2011-06-29 17:54:12 +01:00
misc.cpp Use a timer to avoid polling 2011-11-05 18:19:38 +01:00
misc.h Use a timer to avoid polling 2011-11-05 18:19:38 +01:00
move.cpp Shrink names of move helpers 2011-10-03 14:18:57 +01:00
move.h Shrink names of move helpers 2011-10-03 14:18:57 +01:00
movegen.cpp Replaced macros Min() and Max() with corresponding STL algorithms std::min() and std::max() 2011-10-31 00:38:44 -04:00
movegen.h Remove some useless include 2011-07-16 22:59:14 +01:00
movepick.cpp Retire PieceValueXXX[] getters 2011-10-22 16:06:59 +01:00
movepick.h Retire seeValues[] and move PieceValue[] out of Position 2011-06-26 10:19:37 +01:00
pawns.cpp Better naming borrowed from Critter 2011-10-02 10:16:59 +01:00
pawns.h Tempeltize material imbalance 2011-04-11 12:35:54 +01:00
position.cpp Replaced macros Min() and Max() with corresponding STL algorithms std::min() and std::max() 2011-10-31 00:38:44 -04:00
position.h Inline pinned_pieces() and discovered_check_candidates() 2011-10-30 18:48:23 +01:00
psqtab.h Convert PST tables to relative values 2011-10-22 13:17:24 +01:00
rkiss.h Update copyright notes in rkiss.h 2011-03-10 08:08:34 +01:00
search.cpp Use a timer to avoid polling 2011-11-05 18:19:38 +01:00
search.h Use a timer to avoid polling 2011-11-05 18:19:38 +01:00
thread.cpp Use a timer to avoid polling 2011-11-05 18:19:38 +01:00
thread.h Use a timer to avoid polling 2011-11-05 18:19:38 +01:00
timeman.cpp Use a timer to avoid polling 2011-11-05 18:19:38 +01:00
timeman.h Restore startpos_ply_counter() instead of full_moves() 2011-07-03 06:54:46 +01:00
tt.cpp Introduce and use struct MoveList 2011-07-02 14:04:33 +01:00
tt.h Use probe() as name for looking up into an hash table 2011-04-27 07:31:51 +01:00
types.h Replaced macros Min() and Max() with corresponding STL algorithms std::min() and std::max() 2011-10-31 00:38:44 -04:00
uci.cpp Rewrite how commands from GUI are read 2011-11-05 08:35:17 +01:00
ucioption.cpp Use std::lexicographical_compare() in UCI options 2011-08-03 15:00:23 +01:00
ucioption.h Fix a (silly) warning under icc compiler 2011-08-04 10:10:03 +01:00