Hi I need to port an old code from YARA C API for v 1.7 to 3.6 The usage model is multi-threaded, with each thread using the same rules to scan different files. So I just want to understand if the relevant YARA code is reentrant and what should be the correct flow?
Let say I have in the *main thread* : * yr_initialize()* * yr_compiler_create()* * ....* * yr_rules_save(file)* * yr_compiler_destroy()* ... /* spawn the threads here */ And in each one of *thread functions*: *yr_rules_load(file)* *yr_scan_mem()* *yr_finalize_thread()* Is it the correct flow or do I miss anything? Many thanks Igor -- You received this message because you are subscribed to the Google Groups "YARA" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
