You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems inefficient to pass around a &'a CriticalSection, since reference to zero-sized types are not themselves zero-sized in rust. In a lot of cases, this would be compiled out, but it is not guaranteed.
It would be better if CriticalSection was defined like this:
structCriticalSection<'a>{_0:PhantomData<&'a()>,}
Instead of passing &'a CriticalSection you would then pass a CriticalSection<'a> around. This would have the same purpose