Thread Barrier for Delphi and Freepascal

Thread Barrier for Delphi and Freepascal version 1.0

Amine Moulay Ramdane has added his condition variable implementation and his scalable Lock called scalable MLock that both work with both Windows and Linux and he has made the Thread Barrier work with both Windows and Linux, and now you can pass a parameter to the constructor of the Thread Barrier as ctMutex to use a Mutex or ctMLock to use a scalable Lock called MLock or ctCriticalSection to use a Critical Section.

You can go to download the zip file from:

https://drive.google.com/drive/folders/134tlKO1j3WnVU3ignQToYDAcFnwFQlbo

Language: FPC Pascal v2.2.0+ / Delphi 5+: http://www.freepascal.org/

Required FPC switches: -O3 -Sd

-Sd for delphi mode....

Required Delphi XE-XE7 and Tokyo switch: -$H+ -DXE

You can configure it as follows from inside defines.inc file:

{$DEFINE CPU32} and {$DEFINE Windows32} for 32 bit systems

{$DEFINE CPU64} and {$DEFINE Windows64} for 64 bit systems

- Platform: Windows, Unix and Linux (x86)