public void RemoveAll() { lock (thislock) { LoC.Clear(); } }
public void Excute() { lock (thislock) { foreach (Commend i in LoC) { LoCready.Add(i); } LoC.Clear(); } foreach (Commend i in LoCready) { i.Process(); } }
public void RemoveAll() { lock (thislock) { LoC.Clear(); } }
public void Excute() { lock (thislock) { foreach (Commend i in LoC) { LoCready.Add(i); } LoC.Clear(); } foreach (Commend i in LoCready) { i.Process(); } }