https://github.com/sonadorje/Pthreads4w-delphi
This project compiled in delphi XE2 and above. it's also compiled in newest Lazarus.
Unfortunately, when the demo TestPThread.exe running under XE 10.x ,it raised a unknown error, but it's no problem in XE2 and Lazarus.
I don't know what happened!