[fpc-pascal] Semaphores removed from the rtl?
sysrpl at gmail.com
Wed Jul 19 18:29:22 CEST 2017
Thanks for that bit of information Charlie. I should have searched the svn
As a note to this, I am using semaphores quite a bit in SDL2 to guard
against things like changes to audio banks in the ui thread and reading
audio sample bits in the audio mixer thread, which SDL2 sets up whenever
you play audio. There are other places where I use semaphores, but the
point is SDL2 implements semaphores across all platforms and they work
It just seems to me like the concept of a semaphore has been well
established in CS for decades and it's a bit weird to remove them from the
rtl. They are native to all platforms (I just checked). Sure they we not
used by any rtl internal functions/objects (in TThread for example), but I
don't believe that should have been reason enough to get rid of them.
In other words, just because a one group of developers don't use a tool,
that shouldn't dictate its removal.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal