Hunspell线安全吗? [英] Is Hunspell thread safe?

查看:78
本文介绍了Hunspell线安全吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hunspell拼写库是否是线程安全的?

Is the Hunspell spelling library thread-safe?

推荐答案

答案为否, 一个简单的多线程测试应用程序显示,Hunspell在拼写过程中使用了按实例的资源,因此,只有一个线程可以在任何时间使用它-使用锁/工作队列/或实例化每个线程的Hunspell实例.

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.

这篇关于Hunspell线安全吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆