aho_corasick
aho_corasick copied to clipboard
Is the trie class threadsafe?
In particular, the main parse_text
method. Is it safe for multiple threads to call parse_text
at the same time?
same question +1
Also interested
I am using the master branch, and i just fix one multi-thread crash bug for my usage. My usage is very simple: load the dict once and only one thread do the load work. Then multi-thread will call parse_text() and never call insert(). The bug occurs randomly when calling parse_text(), the callstack stops at construct_failure_states(). My solution is make construct_failure_states() a public member function, and call it in load dict thread after loading.
construct_failure_states
the function name should be "check_construct_failure_states()"