Fathom icon indicating copy to clipboard operation
Fathom copied to clipboard

Not thread-safe when probing root?

Open jdart1 opened this issue 9 years ago • 1 comments

The library seems to have problems when multiple threads call tb_probe_root (memory corruption). In my engine this is not done during a normal search, but there are some cases in which it is done (the parameter tuning utility for example can launch multiple threads, each of which does a root probe).

jdart1 avatar Sep 04 '16 19:09 jdart1

Yep, not thread safe. It says so in the header documentation:

 * - This function is NOT thread safe.  For engines this function should only
 *   be called once at the root per search.

The original code from this was based is also not thread safe at the root. I haven't looked into what is required to fix this.

basil00 avatar Sep 05 '16 13:09 basil00