IT
Leggi tutto — Uso dei thread in Delphi
Uso dei thread in Delphi
Ecco un modo semplice per usare i thread in Delphi. synchronize va usato con criterio 🙂 Contenuto della funzione [code lang=”delphi”] uses System.Classes, System.SysUtils, Vcl.Forms; procedure Wait(Proc: TProc); var Thread: TThread; begin Thread := TThread.CreateAnonymousThread(procedure() begin Proc; end); Thread.FreeOnTerminate :=…

