You should know that the VCL used by C ++ Builder is completely written in Delphi / ObjectPascal. All C ++ builder applications use C ++ using delphi-based libraries.
The open source project FreePascal / Lazarus implements the reversed majority of VCL (almost all non-visual materials and most visual materials), and it runs on Linux. Non-visual VCL-compatible material is known as the “Free Component Library” (“FCL”) http://www.freepascal.org/ http://www.freepascal.org/fcl/fcl.var
The source of the TThread implementation in FCL should be fairly easy to find.
One option is to rewrite it in FreePascal, where the language changes to ObjectPascal, but the VCL calls and the use of the VCL components will be almost identical.
Another option would be to switch to C ++ on Linux and somehow use FreePascal VCL from C ++. I am not sure about the practicality / feasibility of this. Someone on the FreePascal forums should be able to answer that.
Thus, another option, as someone mentioned, is simply to rewrite using another thread library.
source share