diff options
| author | bors <bors@rust-lang.org> | 2013-10-11 08:56:19 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-11 08:56:19 -0700 |
| commit | ed37b00b06f14e41740bd296e99b4ece0ce63c84 (patch) | |
| tree | a74535aa073dcd760a72a105c35004efee0075ec /src/libstd/rt/mod.rs | |
| parent | 93a08f49fa0d6f1451b9cf4f4042401b1b02561a (diff) | |
| parent | 8b4423b04f519b78e0e9196ae1521531c80c743b (diff) | |
auto merge of #9803 : alexcrichton/rust/less-pub2, r=brson
This change was waiting for privacy to get sorted out, which should be true now that #8215 has landed. Closes #4427
Diffstat (limited to 'src/libstd/rt/mod.rs')
| -rw-r--r-- | src/libstd/rt/mod.rs | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs index 2db973b602e..78f0bb0a07c 100644 --- a/src/libstd/rt/mod.rs +++ b/src/libstd/rt/mod.rs @@ -76,6 +76,16 @@ use vec::{OwnedVector, MutableVector, ImmutableVector}; use self::thread::Thread; use self::work_queue::WorkQueue; +// the os module needs to reach into this helper, so allow general access +// through this reexport. +pub use self::util::set_exit_status; + +// this is somewhat useful when a program wants to spawn a "reasonable" number +// of workers based on the constraints of the system that it's running on. +// Perhaps this shouldn't be a `pub use` though and there should be another +// method... +pub use self::util::default_sched_threads; + // XXX: these probably shouldn't be public... #[doc(hidden)] pub mod shouldnt_be_public { @@ -86,8 +96,12 @@ pub mod shouldnt_be_public { pub use super::select::SelectInner; pub use super::rtio::EventLoop; pub use super::select::{SelectInner, SelectPortInner}; + pub use super::local_ptr::maybe_tls_key; } +// Internal macros used by the runtime. +mod macros; + /// The global (exchange) heap. pub mod global_heap; @@ -158,17 +172,14 @@ pub mod comm; mod select; -// FIXME #5248 shouldn't be pub /// The runtime needs to be able to put a pointer into thread-local storage. -pub mod local_ptr; +mod local_ptr; -// FIXME #5248: The import in `sched` doesn't resolve unless this is pub! /// Bindings to pthread/windows thread-local storage. -pub mod thread_local_storage; +mod thread_local_storage; -// FIXME #5248 shouldn't be pub /// Just stuff -pub mod util; +mod util; // Global command line argument storage pub mod args; |
