internal virtual void Dispatch() { lock (this) { running.AddAll(pending); pending.Clear(); } for (int ii = 0, ll = running.size; ii < ll; ii++) { Runnable action = running.Get(ii); try { action.Run(); } catch (System.Exception e) { log.Warn("invokeLater Runnable failed: " + action, e); } } running.Clear(); }
public RefManager(params LRelease[] res) { objects.AddAll(res); }