Forum

× General Forum discussions that don't fit in any of the other specific forum categories, help etc.

Question CodeTyphon and MTProcs

  • Mont Blanc
  • Mont Blanc's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
4 weeks 8 minutes ago #12852 by Mont Blanc
CodeTyphon and MTProcs was created by Mont Blanc
Hello,
I'm trying to use ProcThreadPool.DoParallel but the unit MtProcs ther's not present, and I want to know how implement it is possible,
now i'm compiling win32 on windows 10.
Thanks in advance

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
3 weeks 6 days ago - 3 weeks 6 days ago #12853 by Sternas Stefanos
Replied by Sternas Stefanos on topic CodeTyphon and MTProcs
Thanks Sir

the unit MtProcs.pas is in the lz_MultiThreadProcs package from Ver 6.2.1 Date 21-05-2017
this units has in TProcThreadPool class
procedure DoParallel(const AMethod: TMTMethod;
      StartIndex, EndIndex: PtrInt;
      Data: Pointer = nil; MaxThreads: PtrInt = 0); inline;
    procedure DoParallel(const AProc: TMTProcedure;
      StartIndex, EndIndex: PtrInt;
      Data: Pointer = nil; MaxThreads: PtrInt = 0); inline;
    procedure DoParallelNested(const ANested: TMTNestedProcedure;
      StartIndex, EndIndex: PtrInt;
      Data: Pointer = nil; MaxThreads: PtrInt = 0); inline;


Your CodeTyphon Version ?


CodeTyphon Architect and Programmer
Attachments:
Last edit: 3 weeks 6 days ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.