Thẻ: Convenient

IT

Sử dụng thread trong Delphi

Cách sử dụng thread dễ dàng trong Delphi. Chỉ cần sử dụng synchronize đúng cách 🙂 Nội dung hàm uses System.Classes, System.SysUtils, Vcl.Forms; procedure Wait(Proc: TProc); var Thread: TThread; begin Thread := TThread.CreateAnonymousThread(procedure() begin Proc; end); Thread.FreeOnTerminate := True; Thread.Start;…

Xem thêm — Sử dụng thread trong Delphi