Changeset 1754 for branches/eraser6/6.0
- Timestamp:
- 2/8/2010 3:38:30 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/6.0/Eraser.Manager/DirectExecutor.cs
r1719 r1754 56 56 thread.Abort(); 57 57 schedulerInterrupt.Set(); 58 59 //Wait for the executor thread to exit -- we call some event functions 60 //and these events may need invocation on the main thread. So, 61 //pump messages from the main thread until the thread exits. 62 if (System.Windows.Forms.Application.MessageLoop) 63 { 64 if (!thread.Join(new TimeSpan(0, 0, 0, 0, 100))) 65 System.Windows.Forms.Application.DoEvents(); 66 } 67 68 //If we are disposing on a secondary thread, or a thread without 69 //a message loop, just wait for the thread to exit indefinitely 70 else 71 thread.Join(); 72 58 73 schedulerInterrupt.Close(); 59 74 } … … 760 775 "not be erased because the file was either compressed, encrypted or " + 761 776 "a sparse file.", info.FullName), LogLevel.Error)); 777 continue; 762 778 } 763 779
Note: See TracChangeset
for help on using the changeset viewer.
