提交 490dcbdc 编写于 作者: S Sam Harwell

Guard access to shared resource WordSimilarityChecker.s_pool

上级 f1864f80
......@@ -140,7 +140,10 @@ public void Free()
_source = null;
_editDistance = null;
_lastAreSimilarResult = default(CacheResult);
s_pool.Push(this);
lock (s_poolGate)
{
s_pool.Push(this);
}
}
public static bool AreSimilar(string originalText, string candidateText)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册