Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Lazarus equivalent code to Delphi TParallel.For
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Programmatic filtering in...
by
jamie
[
Today
at 08:05:46 pm]
How to hide IEEE754 limit...
by
srvaldez
[
Today
at 07:42:38 pm]
Get "serial number" of (r...
by
Bart
[
Today
at 07:36:59 pm]
Some testing the water qu...
by
Thaddy
[
Today
at 06:34:36 pm]
This worries me about our...
by
Curt Carpenter
[
Today
at 06:32:55 pm]
Porting PDF Viewer from D...
by
Boleeman
[
Today
at 06:21:52 pm]
Lazarus broke my project
by
Handoko
[
Today
at 05:56:11 pm]
New Mac mini M4 - FPC 3.2...
by
Thaddy
[
Today
at 05:29:31 pm]
Form scaling aspect ratio
by
jamie
[
Today
at 05:01:41 pm]
Lowercase Drive in LAZ 4....
by
BrunoK
[
Today
at 04:39:41 pm]
Demo #3 of my "home grown...
by
TBMan
[
Today
at 03:05:57 pm]
Add new unit to a Lazarus...
by
Lulu
[
Today
at 02:58:02 pm]
Seems like good timing to...
by
mdlueck
[
Today
at 02:17:23 pm]
Lazarus Bugfix Release 4...
by
jwdietrich
[
Today
at 01:54:34 pm]
synedit
by
Martin_fr
[
Today
at 01:49:12 pm]
[SOLVED] How to update 'F...
by
Hartmut
[
Today
at 01:33:36 pm]
Help with search and repa...
by
avk
[
Today
at 07:09:59 am]
Variable "xyz" doesn't no...
by
Mr.Madguy
[
Today
at 06:22:15 am]
Problem Installing CHM He...
by
Curt Carpenter
[
Today
at 03:03:11 am]
EditorMacroScript did not...
by
jamie
[
Today
at 02:55:41 am]
Mapping Images Like Odome...
by
SandyG
[November 14, 2025, 11:53:01 pm]
Problem with Qt5 on macOS
by
zeljko
[November 14, 2025, 10:39:24 pm]
Incompatible type in MTPr...
by
LemonParty
[November 14, 2025, 06:36:59 pm]
In fpcsrc, many places ca...
by
AlexTP
[November 14, 2025, 06:15:35 pm]
Postgres, ZEOS and Visual...
by
wp
[November 14, 2025, 05:57:25 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Lazarus equivalent code to Delphi TParallel.For (Read 1862 times)
Paolo
Hero Member
Posts: 639
Lazarus equivalent code to Delphi TParallel.For
«
on:
March 14, 2021, 10:24:58 am »
Hello,
There is in Lazarus/FPC the equivalent to TParallel.For in Delphi ? for code like this what library I have to install ? (Win 10 64, Laz 2.0.12, FPC 3.2.0),
are there alternatives in case of no equivalent exists ?
thank you in advance.
Code: Pascal
[Select]
[+]
[-]
TParallel
.
For
(
gIniParam
,
gEndParam
,
procedure
(
I
:
Integer
)
var
k
:
integer
;
blah
...
blah
;
begin
k
:
=
0
;
Do
(
I
)
;
//here main task
Blah
...,
blah
...
end
;
end
;
Logged
Mr.Madguy
Hero Member
Posts: 879
Re: Lazarus equivalent code to Delphi TParallel.For
«
Reply #1 on:
March 14, 2021, 01:53:51 pm »
First of all, FPC doesn't support closures now, so exactly this syntax isn't available for sure.
Logged
Is it healthy for project not to have regular stable releases?
Just for fun:
Code::Blocks, GCC 13 and DOS - is it possible?
engkin
Hero Member
Posts: 3112
Re: Lazarus equivalent code to Delphi TParallel.For
«
Reply #2 on:
March 14, 2021, 03:20:34 pm »
Unit
MTProcs
, package multithreadprocslaz
or
BeRo's
PasMP
:
«
Last Edit: March 14, 2021, 03:26:26 pm by engkin
»
Logged
Paolo
Hero Member
Posts: 639
Re: Lazarus equivalent code to Delphi TParallel.For
«
Reply #3 on:
March 15, 2021, 12:07:29 pm »
Thanks to all
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Lazarus equivalent code to Delphi TParallel.For
TinyPortal
© 2005-2018