Is Hunspell thread safe?

自作多情 提交于 2019-12-23 08:28:06

问题


Is the Hunspell spelling library thread-safe?


回答1:


The answer is NO, A simple multi-threaded test application revealed that Hunspell uses per-instance resources for the spelling process, so only one thread can use it at any time - use locks/work queue/or instanciate a per-thread Hunspell instance.



来源:https://stackoverflow.com/questions/4639789/is-hunspell-thread-safe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!