[fpc-pascal] Semaphores removed from the rtl?
Benjamin Rosseaux
benjamin at rosseaux.com
Wed Jul 19 18:39:11 CEST 2017
You could use TPasMPSemaphore from my PasMP project (
https://github.com/BeRo1985/pasmp/ and respectively
https://github.com/BeRo1985/pasmp/blob/master/src/PasMP.pas ) which is also
cross-platform-capable.
On Wed, Jul 19, 2017 at 6:29 PM, Anthony Walter <sysrpl at gmail.com> wrote:
> Thanks for that bit of information Charlie. I should have searched the svn
> logs.
>
> 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
> consistently.
>
> https://wiki.libsdl.org/SDL_CreateSemaphore
>
> 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.
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170719/27e05ffd/attachment.html>
More information about the fpc-pascal
mailing list