@@ -59,13 +59,13 @@ use sys_common::rwlock as sys;
59
59
/// } // write lock is dropped here
60
60
/// ```
61
61
#[ stable]
62
- pub struct RWLock < T > {
62
+ pub struct RwLock < T > {
63
63
inner : Box < StaticRWLock > ,
64
64
data : UnsafeCell < T > ,
65
65
}
66
66
67
- unsafe impl < T : ' static +Send > Send for RWLock < T > { }
68
- unsafe impl < T > Sync for RWLock < T > { }
67
+ unsafe impl < T : ' static +Send > Send for RwLock < T > { }
68
+ unsafe impl < T > Sync for RwLock < T > { }
69
69
70
70
/// Structure representing a statically allocated RWLock.
71
71
///
@@ -127,11 +127,11 @@ pub struct RWLockWriteGuard<'a, T: 'a> {
127
127
__marker : marker:: NoSend ,
128
128
}
129
129
130
- impl < T : Send + Sync > RWLock < T > {
130
+ impl < T : Send + Sync > RwLock < T > {
131
131
/// Creates a new instance of an RWLock which is unlocked and read to go.
132
132
#[ stable]
133
- pub fn new ( t : T ) -> RWLock < T > {
134
- RWLock { inner : box RWLOCK_INIT , data : UnsafeCell :: new ( t) }
133
+ pub fn new ( t : T ) -> RwLock < T > {
134
+ RwLock { inner : box RWLOCK_INIT , data : UnsafeCell :: new ( t) }
135
135
}
136
136
137
137
/// Locks this rwlock with shared read access, blocking the current thread
@@ -228,7 +228,7 @@ impl<T: Send + Sync> RWLock<T> {
228
228
}
229
229
230
230
#[ unsafe_destructor]
231
- impl < T > Drop for RWLock < T > {
231
+ impl < T > Drop for RwLock < T > {
232
232
fn drop ( & mut self ) {
233
233
unsafe { self . inner . lock . destroy ( ) }
234
234
}
0 commit comments