Re: [RFC PATCH V3 1/8] rust: Add initial bindings for OPP framework
From: Viresh Kumar
Date: Tue Jul 09 2024 - 07:03:00 EST
On 03-07-24, 08:34, Boqun Feng wrote:
> On Wed, Jul 03, 2024 at 12:44:26PM +0530, Viresh Kumar wrote:
> > +// SAFETY: `OPP` only holds a pointer to a C OPP, which is safe to be used from any thread.
> > +unsafe impl Send for OPP {}
> > +
> > +// SAFETY: `OPP` only holds a pointer to a C OPP, references to which are safe to be used from any
> > +// thread.
> > +unsafe impl Sync for OPP {}
> > +
>
> Same for the above safety comments, as they are still based on the old
> implementation.
Do I still need to change these ? Since we aren't always using ARef
now.
--
viresh