Re: Futex alternatives.
Re: Futex alternatives.
- Subject: Re: Futex alternatives.
- From: Richard Schmitt <email@hidden>
- Date: Sat, 14 Jul 2018 08:01:20 -0500
Yes and no.
futex is a user-mode implementation of a mutex (i.e. locking). Darwin doesn’t
have a futex but it’s got ways to provide the locking. It would require you to
modify the original source though (or you can provide your own wrappers to the
futex calls for Darwin).
see: https://preshing.com/20111124/always-use-a-lightweight-mutex/
<https://preshing.com/20111124/always-use-a-lightweight-mutex/>
Rich
> On Jul 13, 2018, at 3:55 PM, Pascal <email@hidden> wrote:
>
> Hello,
>
> In a library code source coming from Linux, I've got the following error on
> macOS 10.13:
> simple_components/os/linux/synchronization_linux.c:29:10: fatal error:
> linux/futex.h: No such file or directory
> #include <linux/futex.h>
>
> I can't found any futex.h in /usr/include.
>
> Is there macOS or Darwin alternatives to Futex?
>
> Thanks, Pascal.
> http://blady.pagesperso-orange.fr
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden