2021年6月16日

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 阅读(393) 评论(0) 推荐(0) 编辑

导航