如果我这样做:
private static System.Threading.AutoResetEvent event_2 = new System.Threading.AutoResetEvent(false);
然后在主线程中我做:
event_2.Set();
它将状态从false
更改为true
吗?
如果是的话,它基本上做到了:
AutoResetEventState = !AutoResetEventState
?