public void Clear() { lock(mutex) { foreach(LinkedList<MessageDispatch> list in channels) { list.Clear(); } } }