static void cleanup_process(object dummy) { mutex.Lock (); foreach (ObjectCache obj in objects) obj.timeout_func (); mutex.Unlock (); }