PR#20326 : Issue#20322: Adding unsafe Send and Sync traits implementation for RingBuf
This commit is contained in:
parent
fea5aa656f
commit
8fb25ab5b0
@ -48,6 +48,12 @@ pub struct RingBuf<T> {
|
||||
ptr: *mut T
|
||||
}
|
||||
|
||||
#[stable]
|
||||
unsafe impl<T: Send> Send for RingBuf<T> {}
|
||||
|
||||
#[stable]
|
||||
unsafe impl<T: Sync> Sync for RingBuf<T> {}
|
||||
|
||||
#[stable]
|
||||
impl<T: Clone> Clone for RingBuf<T> {
|
||||
fn clone(&self) -> RingBuf<T> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user