Ignore:
Timestamp:
Aug 29, 2016, 5:35:21 PM (8 years ago)
Author:
chronos
Message:
  • Added: Second clock task running in parallel.
  • Modified: Redraw screen only with maximum defined period. Not after each graphic operation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Kernel/UKernel.pas

    r9 r10  
    1818  end;
    1919
    20   TTimer = class
    21     Period: TDateTime;
    22   end;
     20//  TTimer = class
     21//    Period: TDateTime;
     22//  end;
    2323
    2424  { TKernel }
     
    115115  NewFile.Name := 'Clock';
    116116  NewDrive.FileSystem.TopDirectory.Items.Add(NewFile);
    117   InitVideo;
     117
     118  NewFile := TFile.Create;
     119  NewFile.Name := 'Clock2';
     120  NewDrive.FileSystem.TopDirectory.Items.Add(NewFile);
     121InitVideo;
    118122end;
    119123
     
    129133    SystemFileSystem := SystemDrive.FileSystem;
    130134    AppFile := TFile(SystemFileSystem.TopDirectory.Items.FindByName('Clock'));
     135    if Assigned(AppFile) then AppExecute(AppFile)
     136      else raise Exception.Create('Cannot start first application');
     137    AppFile := TFile(SystemFileSystem.TopDirectory.Items.FindByName('Clock2'));
    131138    if Assigned(AppFile) then AppExecute(AppFile)
    132139      else raise Exception.Create('Cannot start first application');
Note: See TracChangeset for help on using the changeset viewer.