site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1531573286; bh=JDhfiVMFlwYe9i54By6wZkykTt7gXoZvO4so/a4TMAQ=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From:Subject; b=t3AWnWjHNfDLozmvRQ+wtO4jzAk95avr96uZtansBnydSbkD9wR67LApMItsgp+ZKFmJKH6/lv1z9cA3oyH9d342bQ1IP+/Uu7KK/XiaOmWQQR3e5TFQadM/l0NTFcu7KpqexcHtzvDBfuUyHj8bDzsCmpPy/p8a2ZGsFLqpcKUUEL4TPQL4hyCLBaqP/A6TAqbF/f9jHdGdITXKsK40CeZlk34EHpV2nC3dFJ8UkiIgfgE1r0xRpMUoVHpEcsy+ByairDHjV+j7NdoFZT1yJGWLT6+UDfUSDKwDP1zFmQZNtu2xI7zgtqibxDNC08t/zdPH5GXVWyYU7uGC/SYz6A== 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 <sur.pignard@wanadoo.fr> 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-dev/rschmitt%40bluepeach.com
This email sent to rschmitt@bluepeach.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app... This email sent to site_archiver@lists.apple.com
participants (1)
-
Richard Schmitt