Am 13.08.2020 um 06:36 schrieb Ryan Joseph via fpc-pascal:
Are semaphores actually supported in the RTL? I don't see they're available on
macOS (compiling with trunk even).
https://www.freepascal.org/docs-html/3.0.0/rtl/system/semaphoreinit.html
No, these functions where there only temporary. The RTL functionality
for semaphores was only ever implemented for *nix systems, but not for
Windows and was only used internally in the System unit, but even that
changed some years ago, thus it was decided to remove it.
The way to go with semaphores would be to implement the Delphi
compatible TSemaphore in the unit SyncObjs.
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal