[fpc-pascal] Semaphores removed from the rtl?
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
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
> 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.
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal