Пример #1
0
 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();
 }
Пример #2
0
 public RefManager(params LRelease[] res)
 {
     objects.AddAll(res);
 }