-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Move concurrent stuff from lib extra on a separate package #11910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,6 +85,7 @@ src/.DS_Store | |
/doc/rustdoc | ||
/doc/rustuv | ||
/doc/rustpkg | ||
/doc/concurrency | ||
/nd/ | ||
/llvm/ | ||
version.md | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT | ||
// file at the top-level directory of this distribution and at | ||
// http://rust-lang.org/COPYRIGHT. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
/*! | ||
* Concurrency-enabled mechanisms and primitives. | ||
*/ | ||
|
||
#[allow(missing_doc)]; | ||
#[feature(globs)]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it be possible to remove this feature? If it's super painful, then we can leave it, but in general it'd be nice if the smaller crates didn't have lots of extra features. |
||
|
||
#[crate_id = "concurrency#0.10-pre"]; | ||
#[crate_type = "rlib"]; | ||
#[crate_type = "lib"]; | ||
#[license = "MIT/ASL2"]; | ||
|
||
pub mod arc; | ||
pub mod sync; | ||
pub mod comm; | ||
pub mod task_pool; | ||
pub mod future; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,14 +11,15 @@ | |
// This test creates a bunch of tasks that simultaneously send to each | ||
// other in a ring. The messages should all be basically | ||
// independent. | ||
// This is like msgsend-ring-pipes but adapted to use Arcs. | ||
// This is like msgsend-ring-pipes but adapted to use concurrency::arcs. | ||
|
||
// This also serves as a pipes test, because Arcs are implemented with pipes. | ||
// This also serves as a pipes test, because concurrency::arcs are implemented with pipes. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These comments should probably stay the same. |
||
|
||
extern mod extra; | ||
extern mod concurrency; | ||
|
||
use extra::arc; | ||
use extra::future::Future; | ||
use concurrency::arc; | ||
use concurrency::future::Future; | ||
use extra::time; | ||
use std::os; | ||
use std::uint; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,14 +11,15 @@ | |
// This test creates a bunch of tasks that simultaneously send to each | ||
// other in a ring. The messages should all be basically | ||
// independent. | ||
// This is like msgsend-ring-pipes but adapted to use Arcs. | ||
// This is like msgsend-ring-pipes but adapted to use concurrency::arcs. | ||
|
||
// This also serves as a pipes test, because Arcs are implemented with pipes. | ||
// This also serves as a pipes test, because concurrency::arcs are implemented with pipes. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As above, these comments should probably stay the same. |
||
|
||
extern mod extra; | ||
extern mod concurrency; | ||
|
||
use extra::arc; | ||
use extra::future::Future; | ||
use concurrency::arc; | ||
use concurrency::future::Future; | ||
use extra::time; | ||
use std::os; | ||
use std::uint; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These
extern mod
statements should be auto-injected by rustdoc, so you can probably remove them.