PR#20326 : Issue#20322: Adding unsafe Send and Sync traits implementation for RingBuf

This commit is contained in:
Rohit Joshi 2014-12-30 04:20:24 -05:00
parent fea5aa656f
commit 8fb25ab5b0

View File

@ -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> {