Changeset 5 for trunk/Platform/Base
- Timestamp:
- Nov 23, 2014, 9:04:03 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 2 2 ChronOS.lps 3 3 lib 4 heaptrclog.trc
-
- Property svn:ignore
-
trunk/Platform/Base/UPlatformBase.pas
r4 r5 32 32 33 33 TBaseScheduler = class(TScheduler) 34 function AddTask(Name: string; EntryPoint: T BasicEvent): TTask; override;34 function AddTask(Name: string; EntryPoint: TTaskEvent): TTask; override; 35 35 constructor Create; override; 36 36 destructor Destroy; override; … … 101 101 procedure TCustomThread.Execute; 102 102 begin 103 Task.EntryPoint ;103 Task.EntryPoint(Task); 104 104 end; 105 105 106 106 { TBaseScheduler } 107 107 108 function TBaseScheduler.AddTask(Name: string; EntryPoint: T BasicEvent): TTask;108 function TBaseScheduler.AddTask(Name: string; EntryPoint: TTaskEvent): TTask; 109 109 var 110 110 Task: TBaseTask; … … 135 135 136 136 procedure TBaseScheduler.Stop; 137 var 138 I: Integer; 137 139 begin 138 inherited Start; 140 inherited Stop; 141 for I := 0 to Tasks.Count - 1 do 142 TBaseTask(Tasks[I]).Terminated := True; 139 143 end; 140 144
Note:
See TracChangeset
for help on using the changeset viewer.