tw16326.pp 324 B

12345678910111213141516171819202122232425262728
  1. {$mode objfpc}
  2. {$H+}
  3. uses
  4. {$ifdef unix}
  5. cthreads,
  6. {$endif}
  7. classes
  8. ;
  9. type
  10. tthread1 = class(tthread)
  11. public
  12. procedure execute; override;
  13. end;
  14. procedure tthread1.execute;
  15. begin
  16. end;
  17. var
  18. thread1: tthread1;
  19. begin
  20. thread1 := tthread1.create(true);
  21. thread1.start;
  22. thread1.waitfor;
  23. thread1.free;
  24. end.