Skip to content

Commit d981d5d

Browse files
committed
---
yaml --- r: 185055 b: refs/heads/snap-stage3 c: 1db684f h: refs/heads/master i: 185053: 3003cc5 185051: d732519 185047: 1e2393a 185039: 5b63caf 185023: 454bf14 v: v3
1 parent a7952f2 commit d981d5d

File tree

14 files changed

+178
-178
lines changed

14 files changed

+178
-178
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: f0f7ca27de6b4e03f30012656dad270cda55a363
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 5d8c9f5c9976a906c8d2b41f9375df2f735ec23b
4+
refs/heads/snap-stage3: 1db684f67ad277ab7a002ee238872ca68fb13b27
55
refs/heads/try: ccf8fedf1cffcb8f6f3581d53d220039e192fe77
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/libstd/sync/barrier.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ use sync::{Mutex, Condvar};
3333
pub struct Barrier {
3434
lock: Mutex<BarrierState>,
3535
cvar: Condvar,
36-
num_threads: uint,
36+
num_threads: usize,
3737
}
3838

3939
// The inner state of a double barrier
4040
struct BarrierState {
41-
count: uint,
42-
generation_id: uint,
41+
count: usize,
42+
generation_id: usize,
4343
}
4444

4545
/// A result returned from wait.
@@ -54,7 +54,7 @@ impl Barrier {
5454
/// A barrier will block `n`-1 threads which call `wait` and then wake up
5555
/// all threads at once when the `n`th thread calls `wait`.
5656
#[stable(feature = "rust1", since = "1.0.0")]
57-
pub fn new(n: uint) -> Barrier {
57+
pub fn new(n: usize) -> Barrier {
5858
Barrier {
5959
lock: Mutex::new(BarrierState {
6060
count: 0,
@@ -115,7 +115,7 @@ mod tests {
115115

116116
#[test]
117117
fn test_barrier() {
118-
const N: uint = 10;
118+
const N: usize = 10;
119119

120120
let barrier = Arc::new(Barrier::new(N));
121121
let (tx, rx) = channel();

branches/snap-stage3/src/libstd/sync/condvar.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ impl StaticCondvar {
327327
}
328328

329329
fn verify(&self, mutex: &sys_mutex::Mutex) {
330-
let addr = mutex as *const _ as uint;
330+
let addr = mutex as *const _ as usize;
331331
match self.mutex.compare_and_swap(0, addr, Ordering::SeqCst) {
332332
// If we got out 0, then we have successfully bound the mutex to
333333
// this cvar.
@@ -388,7 +388,7 @@ mod tests {
388388

389389
#[test]
390390
fn notify_all() {
391-
const N: uint = 10;
391+
const N: usize = 10;
392392

393393
let data = Arc::new((Mutex::new(0), Condvar::new()));
394394
let (tx, rx) = channel();

branches/snap-stage3/src/libstd/sync/mpsc/blocking.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ impl SignalToken {
6161
wake
6262
}
6363

64-
/// Convert to an unsafe uint value. Useful for storing in a pipe's state
64+
/// Convert to an unsafe usize value. Useful for storing in a pipe's state
6565
/// flag.
6666
#[inline]
67-
pub unsafe fn cast_to_uint(self) -> uint {
67+
pub unsafe fn cast_to_usize(self) -> usize {
6868
mem::transmute(self.inner)
6969
}
7070

71-
/// Convert from an unsafe uint value. Useful for retrieving a pipe's state
71+
/// Convert from an unsafe usize value. Useful for retrieving a pipe's state
7272
/// flag.
7373
#[inline]
74-
pub unsafe fn cast_from_uint(signal_ptr: uint) -> SignalToken {
74+
pub unsafe fn cast_from_usize(signal_ptr: usize) -> SignalToken {
7575
SignalToken { inner: mem::transmute(signal_ptr) }
7676
}
7777

0 commit comments

Comments
 (0)