delphi 线程进程同步

 TThread.CreateAnonymousThread(procedure
  begin
        sleep(10);
        TThread.Synchronize(nil,
          procedure
          begin
           我的代码...
          end);

      end).Start;

猜你喜欢

转载自blog.csdn.net/ozhy111/article/details/86062420