[fpc-devel] Why FreeBSD sem_init() works different to Linux?
Sven Barth
pascaldragon at googlemail.com
Wed Feb 6 21:10:42 CET 2013
Am 06.02.2013 20:43 schrieb "Marco van de Voort" <marcov at stack.nl>:
>
> In our previous episode, Graeme Geldenhuys said:
> > OK, now that we established that semaphores are broken in FreeBSD using
> > FPC 2.6.0 and the upcoming FPC 2.6.2. I'm looking for an alternative.
>
> > An alternative for two reasons.
> > - I hate IFDEF code, and the semaphore code between Linux, FreeBSD
> > and Windows are different.
> > - Semaphore sem_t structure is incorrectly defined for FreeBSD, so
> > I'll have to implement a special case for that platform.
>
> Why do you not use the standard syncobjs implementations? In 2.6.2 they
> should be ok. (only the types exported by unixtype/unix/baseunix are
wrong)
We don't have semaphores yet in SyncObjs.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20130206/39f4b6c8/attachment.html>
More information about the fpc-devel
mailing list