Skip to content

Commit 91dc414

Browse files
committed
---
yaml --- r: 193012 b: refs/heads/beta c: 1db684f h: refs/heads/master v: v3
1 parent 7c24e96 commit 91dc414

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
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 5d8c9f5c9976a906c8d2b41f9375df2f735ec23b
34+
refs/heads/beta: 1db684f67ad277ab7a002ee238872ca68fb13b27
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: de8a23bbc3a7b9cbd7574b5b91a34af59bf030e6

branches/beta/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/beta/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/beta/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)