bool 不是线程安全
摘要:        
1 static bool isStop = false; 2 static void Main() 3 { 4 var t = new Thread(() => 5 { 6 var isSuccess = false; 7 8 while (!isStop) 9 { 10 isSuccess =     阅读全文
        posted @ 2021-06-16 14:20 Shine-Zhong 阅读(416) 评论(0) 推荐(0)
 
                    
                     
                    
                 
                    
                 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号