Changeset 1755
- Timestamp:
- 2/8/2010 3:48:49 AM (3 years ago)
- Location:
- trunk/eraser6
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Eraser.Manager/DirectExecutor.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6
- Property svn:mergeinfo changed
/branches/eraser6/6.0 merged: 1754
- Property svn:mergeinfo changed
-
trunk/eraser6/Eraser.Manager/DirectExecutor.cs
r1712 r1755 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 } … … 615 630 "not be erased because the file was either compressed, encrypted or " + 616 631 "a sparse file.", info.FullName), LogLevel.Error)); 632 continue; 617 633 } 618 634
Note: See TracChangeset
for help on using the changeset viewer.
