[fpc-pascal] RTL semaphore supported?

Nico Neumann n.neumann93 at gmail.com
Thu Aug 13 10:32:35 CEST 2020


It's not implemented yet, see https://bugs.freepascal.org/view.php?id=37440.
For unix systems the pthread.inc already contains the API headers for the
sem_* functions (
https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/rtl/linux/pthread.inc?view=markup&sortby=file#l183)
but for Mac OS X 10.4.8 the dynamic loading of sem_init needs to be
implemented (
https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/rtl/darwin/pthread.inc?view=markup&sortby=file#l71)
and also another way to init a semaphore.
For Windows, see
https://docs.microsoft.com/en-us/windows/win32/sync/using-semaphore-objects.

Am Do., 13. Aug. 2020 um 10:05 Uhr schrieb Ryan Joseph via fpc-pascal <
fpc-pascal at lists.freepascal.org>:

>
>
> > On Aug 13, 2020, at 12:42 PM, Sven Barth <pascaldragon at googlemail.com>
> wrote:
> >
> > The way to go with semaphores would be to implement the Delphi
> compatible TSemaphore in the unit SyncObjs.
>
> Link? I'm looking at
> https://www.freepascal.org/docs-html/fcl/syncobjs/index-4.html and I
> don't see it.
>
> Regards,
>         Ryan Joseph
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> https://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/20200813/2de738af/attachment.htm>


More information about the fpc-pascal mailing list