diff options
| author | William Ting <william.h.ting@gmail.com> | 2013-01-11 02:27:01 -0600 |
|---|---|---|
| committer | William Ting <william.h.ting@gmail.com> | 2013-01-11 02:30:10 -0600 |
| commit | 9fd970ad13bca7f6155ed15901492cd190c81616 (patch) | |
| tree | 0a0e8dcabf871ea3b05f2fc707fd62822aaefe6b /src/libstd/sync.rs | |
| parent | ad2fc50ca1d8fecdc54306203f226d87a365ce36 (diff) | |
| download | rust-9fd970ad13bca7f6155ed15901492cd190c81616.tar.gz rust-9fd970ad13bca7f6155ed15901492cd190c81616.zip | |
Adds priv qualifiers where they have been commented out before implementation.
Updates #4386.
Diffstat (limited to 'src/libstd/sync.rs')
| -rw-r--r-- | src/libstd/sync.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/sync.rs b/src/libstd/sync.rs index a883062c4b9..ce7a8481ffd 100644 --- a/src/libstd/sync.rs +++ b/src/libstd/sync.rs @@ -449,9 +449,9 @@ struct RWlockInner { * unwinds. */ struct RWlock { - /* priv */ order_lock: Semaphore, - /* priv */ access_lock: Sem<~[mut Waitqueue]>, - /* priv */ state: Exclusive<RWlockInner> + priv order_lock: Semaphore, + priv access_lock: Sem<~[mut Waitqueue]>, + priv state: Exclusive<RWlockInner> } /// Create a new rwlock, with one associated condvar. @@ -683,7 +683,7 @@ fn RWlockReleaseDowngrade(lock: &r/RWlock) -> RWlockReleaseDowngrade/&r { } /// The "write permission" token used for rwlock.write_downgrade(). -pub struct RWlockWriteMode { /* priv */ lock: &RWlock } +pub struct RWlockWriteMode { priv lock: &RWlock } impl RWlockWriteMode : Drop { fn finalize(&self) {} } /// The "read permission" token used for rwlock.write_downgrade(). pub struct RWlockReadMode { priv lock: &RWlock } |
