Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandeml committed Nov 20, 2018
1 parent 76a0b52 commit 3bdd066
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/multicore.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
//! This is an interface for dealing with the kinds of
//! parallel computations involved in bellman. It's
//! currently just a thin wrapper around CpuPool and
//! currently just an optional thin wrapper around CpuPool and
//! crossbeam but may be extended in the future to
//! allow for various parallelism strategies.
//! Compile without the "multithread" feature for targets that
//! don't support parallel computation.

use futures::{Future, IntoFuture, Poll};

#[cfg(feature = "multithread")]
Expand Down Expand Up @@ -81,6 +84,7 @@ pub struct WorkerFuture<T, E> {
future: CpuFuture<T, E>
}

//Dummy worker for single-threaded mode
#[cfg(not(feature = "multithread"))]
#[derive(Clone)]
pub struct Worker {}
Expand Down Expand Up @@ -122,6 +126,7 @@ impl Worker {
}
}

//
#[cfg(not(feature = "multithread"))]
pub struct Scope {
}
Expand Down

0 comments on commit 3bdd066

Please sign in to comment.