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@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to