diff options
| author | Barosl Lee <vcs@barosl.com> | 2015-05-09 00:12:29 +0900 |
|---|---|---|
| committer | Barosl Lee <vcs@barosl.com> | 2015-05-09 02:24:18 +0900 |
| commit | ff332b6467b2b93831c3f0ae3665e920ec725959 (patch) | |
| tree | 4845dc94cb452d158eafa2cd136a1eeee6292448 /src/libcore/atomic.rs | |
| parent | cf76e637450a861e94ef583340b8f080379a159a (diff) | |
| download | rust-ff332b6467b2b93831c3f0ae3665e920ec725959.tar.gz rust-ff332b6467b2b93831c3f0ae3665e920ec725959.zip | |
Squeeze the last bits of `task`s in documentation in favor of `thread`
An automated script was run against the `.rs` and `.md` files, subsituting every occurrence of `task` with `thread`. In the `.rs` files, only the texts in the comment blocks were affected.
Diffstat (limited to 'src/libcore/atomic.rs')
| -rw-r--r-- | src/libcore/atomic.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcore/atomic.rs b/src/libcore/atomic.rs index bcbf31617ee..ec693f36691 100644 --- a/src/libcore/atomic.rs +++ b/src/libcore/atomic.rs @@ -52,20 +52,20 @@ //! spinlock_clone.store(0, Ordering::SeqCst); //! }); //! -//! // Wait for the other task to release the lock +//! // Wait for the other thread to release the lock //! while spinlock.load(Ordering::SeqCst) != 0 {} //! } //! ``` //! -//! Keep a global count of live tasks: +//! Keep a global count of live threads: //! //! ``` //! use std::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT}; //! -//! static GLOBAL_TASK_COUNT: AtomicUsize = ATOMIC_USIZE_INIT; +//! static GLOBAL_THREAD_COUNT: AtomicUsize = ATOMIC_USIZE_INIT; //! -//! let old_task_count = GLOBAL_TASK_COUNT.fetch_add(1, Ordering::SeqCst); -//! println!("live tasks: {}", old_task_count + 1); +//! let old_thread_count = GLOBAL_THREAD_COUNT.fetch_add(1, Ordering::SeqCst); +//! println!("live threads: {}", old_thread_count + 1); //! ``` #![stable(feature = "rust1", since = "1.0.0")] |
