tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PATCH libatomic



On Thu, May 07, 2020 at 05:43:02AM +0200, Kamil Rytarowski wrote:
> I propose the following patch:
> 
> http://netbsd.org/~kamil/patch-00250-libatomic.txt

+__inline static int
+__futex(volatile uint32_t *uaddr, int op, int val, const struct timespec *timeout,
+        volatile uint32_t *uaddr2, int val2, int val3)
+{
+        return syscall(SYS___futex, uaddr, op, val, timeout, uaddr2,
+                        val2, val3);
+}

Maybe it is not ready for prime time before we have finalized and published
the futex api?

> Local changes:
[..]
> - fixed __atomic_compare_exchange_##n

What do you mean with that?

Martin


Home | Main Index | Thread Index | Old Index