diff options
| author | bors <bors@rust-lang.org> | 2014-03-24 18:11:51 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-24 18:11:51 -0700 |
| commit | 6bf3fca8ff90bbeff8d5c437aa784d0dbf8f9455 (patch) | |
| tree | 7fe1f4e9c71ec942f54defdd4b1be123f212804f /src/libnative/lib.rs | |
| parent | bcaaffbe1e1c6a6a3abdabdb4fdaef36358dae33 (diff) | |
| parent | 218461d01049242e3544337055b7f6d06943344b (diff) | |
| download | rust-6bf3fca8ff90bbeff8d5c437aa784d0dbf8f9455.tar.gz rust-6bf3fca8ff90bbeff8d5c437aa784d0dbf8f9455.zip | |
auto merge of #12900 : alexcrichton/rust/rewrite-sync, r=brson
* Remove clone-ability from all primitives. All shared state will now come
from the usage of the primitives being shared, not the primitives being
inherently shareable. This allows for fewer allocations for stack-allocated
primitives.
* Add `Mutex<T>` and `RWLock<T>` which are stack-allocated primitives for purely
wrapping a piece of data
* Remove `RWArc<T>` in favor of `Arc<RWLock<T>>`
* Remove `MutexArc<T>` in favor of `Arc<Mutex<T>>`
* Shuffle around where things are located
* The `arc` module now only contains `Arc`
* A new `lock` module contains `Mutex`, `RWLock`, and `Barrier`
* A new `raw` module contains the primitive implementations of `Semaphore`,
`Mutex`, and `RWLock`
* The Deref/DerefMut trait was implemented where appropriate
* `CowArc` was removed, the functionality is now part of `Arc` and is tagged
with `#[experimental]`.
* The crate now has #[deny(missing_doc)]
* `Arc` now supports weak pointers
This is not a large-scale rewrite of the functionality contained within the
`sync` crate, but rather a shuffling of who does what an a thinner hierarchy of
ownership to allow for better composability.
Diffstat (limited to 'src/libnative/lib.rs')
| -rw-r--r-- | src/libnative/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnative/lib.rs b/src/libnative/lib.rs index da8f2ea139d..34e85a9819a 100644 --- a/src/libnative/lib.rs +++ b/src/libnative/lib.rs @@ -69,7 +69,7 @@ static OS_DEFAULT_STACK_ESTIMATE: uint = 1 << 20; static OS_DEFAULT_STACK_ESTIMATE: uint = 2 * (1 << 20); #[lang = "start"] -#[cfg(not(test), not(stage0))] +#[cfg(not(test))] pub fn lang_start(main: *u8, argc: int, argv: **u8) -> int { use std::cast; start(argc, argv, proc() { |
