Ignore:
Timestamp:
Jan 27, 2011, 10:56:06 AM (14 years ago)
Author:
george
Message:
  • Added: Synchronize method.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • MicroThreading/Demo/UMainForm.pas

    r152 r153  
    6666  private
    6767    procedure Worker(MicroThread: TMicroThread);
     68    procedure WorkerDoWrite;
    6869  public
    6970    Iterations: Integer;
     
    282283      Q := 0;
    283284      while Q < 100 do Inc(Q);
     285      Synchronize(WorkerDoWrite);
    284286      //Memo1.Lines.Add(IntToStr(Id) + ': ' + IntToStr(I) + ' ' +
    285287      //  FloatToStr(ExecutionTime));
     
    291293end;
    292294
     295procedure TMainForm.WorkerDoWrite;
     296begin
     297  Memo1.Lines.Add('.');
     298end;
     299
    293300end.
    294301
Note: See TracChangeset for help on using the changeset viewer.