Re: [RFC v2 02/13] rust: sync: Add basic atomic operation mapping framework

2024-12-13 Thread Boqun Feng
On Fri, Dec 13, 2024 at 03:37:13PM +0100, Alice Ryhl wrote: [...] > > > > @@ -0,0 +1,19 @@ > > > > +// SPDX-License-Identifier: GPL-2.0 > > > > + > > > > +//! Atomic primitives. > > > > +//! > > > > +//! These primitives have the same semantics as their C counterparts: > > > > and the precise defi

Re: [RFC v2 02/13] rust: sync: Add basic atomic operation mapping framework

2024-12-13 Thread Alice Ryhl
On Thu, Dec 12, 2024 at 6:07 PM Boqun Feng wrote: > > On Thu, Dec 12, 2024 at 11:51:23AM +0100, Alice Ryhl wrote: > > On Fri, Nov 1, 2024 at 7:03 AM Boqun Feng wrote: > > > > > > Preparation for generic atomic implementation. To unify the > > > ipmlementation of a generic method over `i32` and `i

Re: [RFC v2 02/13] rust: sync: Add basic atomic operation mapping framework

2024-12-12 Thread Boqun Feng
On Thu, Dec 12, 2024 at 11:51:23AM +0100, Alice Ryhl wrote: > On Fri, Nov 1, 2024 at 7:03 AM Boqun Feng wrote: > > > > Preparation for generic atomic implementation. To unify the > > ipmlementation of a generic method over `i32` and `i64`, the C side > > atomic methods need to be grouped so that i

Re: [RFC v2 02/13] rust: sync: Add basic atomic operation mapping framework

2024-12-12 Thread Alice Ryhl
On Fri, Nov 1, 2024 at 7:03 AM Boqun Feng wrote: > > Preparation for generic atomic implementation. To unify the > ipmlementation of a generic method over `i32` and `i64`, the C side > atomic methods need to be grouped so that in a generic method, they can > be referred as ::, otherwise their para

[RFC v2 02/13] rust: sync: Add basic atomic operation mapping framework

2024-10-31 Thread Boqun Feng
Preparation for generic atomic implementation. To unify the ipmlementation of a generic method over `i32` and `i64`, the C side atomic methods need to be grouped so that in a generic method, they can be referred as ::, otherwise their parameters and return value are different between `i32` and `i64