fix bench test for arc::arc camelcase
This commit is contained in:
parent
61249da53a
commit
330311658f
@ -206,7 +206,7 @@ fn bfs2(graph: graph, key: node_id) -> bfs_result {
|
||||
}
|
||||
|
||||
/// A parallel version of the bfs function.
|
||||
fn pbfs(&&graph: arc::arc<graph>, key: node_id) -> bfs_result {
|
||||
fn pbfs(&&graph: arc::ARC<graph>, key: node_id) -> bfs_result {
|
||||
// This works by doing functional updates of a color vector.
|
||||
|
||||
enum color {
|
||||
|
@ -14,7 +14,7 @@ import std::time;
|
||||
import std::arc;
|
||||
|
||||
// A poor man's pipe.
|
||||
type pipe = arc::mutex_arc<~[uint]>;
|
||||
type pipe = arc::MutexARC<~[uint]>;
|
||||
|
||||
fn send(p: &pipe, msg: uint) {
|
||||
do p.access_cond |state, cond| {
|
||||
|
@ -14,7 +14,7 @@ import std::time;
|
||||
import std::arc;
|
||||
|
||||
// A poor man's pipe.
|
||||
type pipe = arc::rw_arc<~[uint]>;
|
||||
type pipe = arc::RWARC<~[uint]>;
|
||||
|
||||
fn send(p: &pipe, msg: uint) {
|
||||
do p.write_cond |state, cond| {
|
||||
|
Loading…
Reference in New Issue
Block a user