Skip to content
Permalink
Browse files

tidy api

  • Loading branch information...
frankmcsherry committed Jun 4, 2019
1 parent c0734b5 commit 9430c46addfd33fc08b6063d2ecb916d35459a52
Showing with 2 additions and 5 deletions.
  1. +2 −5 communication/src/initialize.rs
@@ -282,12 +282,9 @@ pub struct WorkerGuards<T:Send+'static> {

impl<T:Send+'static> WorkerGuards<T> {

/// Returns the number of guards.
pub fn len(&self) -> usize { self.guards.len() }

/// Returns a reference to the indexed guard.
pub fn guard(&self, index: usize) -> &std::thread::JoinHandle<T> {
&self.guards[index]
pub fn guards(&self) -> &[std::thread::JoinHandle<T>] {
&self.guards[..]
}

/// Waits on the worker threads and returns the results they produce.

0 comments on commit 9430c46

Please sign in to comment.
You can’t perform that action at this time.