一个关于线程安全的小建议
CIT-worker opened this issue · comments
词典部分使用了hashmap的全局变量,这不是线程安全变量,这在多线程时可能产生死锁。
访问没有问题 写入的时候 需要使用者主意了
在2020年08月12日 16:37,CIT-worker 写道:
词典部分使用了hashmap的全局变量,这不是线程安全变量,这在多线程时可能产生死锁。
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.