Changeset 1968
- Timestamp:
- 04/28/10 04:51:19 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/6.0/Eraser.Manager/DirectExecutor.cs
r1782 r1968 968 968 list.Insert(index, item); 969 969 970 //If the task is scheduled to run now, break the waiting thread and 971 //run it immediately 972 if (item.Schedule == Schedule.RunNow) 973 { 974 Owner.QueueTask(item); 975 } 976 //If the task is scheduled, add the next execution time to the list 977 //of schduled tasks. 978 else if (item.Schedule != Schedule.RunOnRestart) 979 { 980 Owner.ScheduleTask(item); 981 } 982 970 983 //Call all the event handlers who registered to be notified of tasks 971 984 //being added. 972 985 Owner.OnTaskAdded(new TaskEventArgs(item)); 973 974 //If the task is scheduled to run now, break the waiting thread and975 //run it immediately976 if (item.Schedule == Schedule.RunNow)977 {978 Owner.QueueTask(item);979 }980 //If the task is scheduled, add the next execution time to the list981 //of schduled tasks.982 else if (item.Schedule != Schedule.RunOnRestart)983 {984 Owner.ScheduleTask(item);985 }986 986 } 987 987
Note: See TracChangeset
for help on using the changeset viewer.
