this code to other chess engines.
*/
+#include <algorithm>
+
#include "../position.h"
#include "../movegen.h"
#include "../bitboard.h"
return 0;
}
// Memory barrier to ensure ptr->ready = 1 is not reordered.
+#ifdef _MSC_VER
+ _ReadWriteBarrier();
+#else
__asm__ __volatile__ ("" ::: "memory");
+#endif
ptr->ready = 1;
}
UNLOCK(TB_mutex);