Re: [fpc-pascal] Semaphores removed from the rtl?

2017-07-22 Thread Anthony Walter
Michael, no I don't. I use https://github.com/sysrpl/Bare.Game/blob/master/source/bare.interop.sdl2.pas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Semaphores removed from the rtl?

2017-07-22 Thread Michael Schnell
On 19.07.2017 18:29, Anthony Walter wrote: As a note to this, I am using semaphores quite a bit in SDL2 ... Do you use Jedi-SDL to combine fpc and SDL ? -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Semaphores removed from the rtl?

2017-07-19 Thread Sven Barth via fpc-pascal
Am 19.07.2017 18:45 schrieb "Anthony Walter" : > > Nah thanks, I can implement them with native functions on windows, mac, and linux easily enough and with $ifdefs. I am just surprised by the thought process involved in removing them. As Charlie said, that functionality was

Re: [fpc-pascal] Semaphores removed from the rtl?

2017-07-19 Thread Karoly Balogh (Charlie/SGR)
Hi, On Wed, 19 Jul 2017, Anthony Walter wrote: > Thanks for that bit of information Charlie. I should have searched the > svn logs. > > (...) > > 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.

Re: [fpc-pascal] Semaphores removed from the rtl?

2017-07-19 Thread Anthony Walter
Nah thanks, I can implement them with native functions on windows, mac, and linux easily enough and with $ifdefs. I am just surprised by the thought process involved in removing them. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Semaphores removed from the rtl?

2017-07-19 Thread Benjamin Rosseaux
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 wrote: > Thanks for

Re: [fpc-pascal] Semaphores removed from the rtl?

2017-07-19 Thread Anthony Walter
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

Re: [fpc-pascal] Semaphores removed from the rtl?

2017-07-19 Thread Karoly Balogh (Charlie/SGR)
Hi, On Wed, 19 Jul 2017, Anthony Walter wrote: > When and why were semaphores removed from the rtl? They are removed from trunk since Sept 2016, and I think they were deprecated for a while now, although I cannot confirm this. But what's sure, they were only implemented and used interally for