PR#20326 : Issue#20322: Adding unsafe Send and Sync traits implementation for RingBuf
This commit is contained in:
parent
fea5aa656f
commit
8fb25ab5b0
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue