Etiqueta: Convenient

IT

Uso de hilos en Delphi

Una forma sencilla de usar hilos en Delphi. Basta con usar synchronize correctamente 🙂 Contenido de la función 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; while…

Leer más — Uso de hilos en Delphi