加锁问题

1、添加属性:[MethodImplAttribute(MethodImplOptions.Synchronized)]

2、利用lock()加锁

原文地址:https://www.cnblogs.com/943711466qq/p/4164967.html