Esempio n. 1
0
 private static void ReteriveStatusThreaded(object param)
 {
     Monitor.Enter(statusRetriveLock);
     try
     {
         string[] paths = param as string[];
         RebuildStatus(paths);
         actionQueue.Enqueue(() =>
         {
             GitCallbacks.IssueUpdateRepository(status, paths);
             ThreadPool.QueueUserWorkItem(UpdateStatusTreeThreaded, status);
         });
     }
     catch (ThreadAbortException)
     {
         actionQueue.Enqueue(FinishUpdating);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
         actionQueue.Enqueue(FinishUpdating);
     }
     finally
     {
         Monitor.Exit(statusRetriveLock);
     }
 }
Esempio n. 2
0
 private static void RetreiveStatus(string[] paths)
 {
     GitProfilerProxy.BeginSample("Git Repository Status Retrieval");
     RebuildStatus(paths);
     GitProfilerProxy.EndSample();
     GitCallbacks.IssueUpdateRepository(status, paths);
     ThreadPool.QueueUserWorkItem(UpdateStatusTreeThreaded, status);
 }
Esempio n. 3
0
 private static void RetreiveStatus(string[] paths)
 {
     try
     {
         GitProfilerProxy.BeginSample("Git Repository Status Retrieval");
         RebuildStatus(paths);
         GitProfilerProxy.EndSample();
         GitCallbacks.IssueUpdateRepository(status, paths);
         ThreadPool.QueueUserWorkItem(UpdateStatusTreeThreaded, status);
     }
     catch (Exception e)
     {
         FinishUpdating();
         Debug.LogError("Could not retrive Git Status");
         Debug.LogException(e);
     }
 }