Changeset 1969
- Timestamp:
- 4/28/2010 4:54:14 AM (3 years ago)
- Location:
- trunk/eraser
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Eraser.Manager/DirectExecutor.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser
- Property svn:mergeinfo changed
/branches/eraser6/6.0 merged: 1968
- Property svn:mergeinfo changed
-
trunk/eraser/Eraser.Manager/DirectExecutor.cs
r1882 r1969 845 845 list.Insert(index, item); 846 846 847 //If the task is scheduled to run now, break the waiting thread and 848 //run it immediately 849 if (item.Schedule == Schedule.RunNow) 850 { 851 Owner.QueueTask(item); 852 } 853 //If the task is scheduled, add the next execution time to the list 854 //of schduled tasks. 855 else if (item.Schedule != Schedule.RunOnRestart) 856 { 857 Owner.ScheduleTask(item); 858 } 859 847 860 //Call all the event handlers who registered to be notified of tasks 848 861 //being added. 849 862 Owner.OnTaskAdded(new TaskEventArgs(item)); 850 851 //If the task is scheduled to run now, break the waiting thread and852 //run it immediately853 if (item.Schedule == Schedule.RunNow)854 {855 Owner.QueueTask(item);856 }857 //If the task is scheduled, add the next execution time to the list858 //of schduled tasks.859 else if (item.Schedule != Schedule.RunOnRestart)860 {861 Owner.ScheduleTask(item);862 }863 863 } 864 864
Note: See TracChangeset
for help on using the changeset viewer.
