RsBundle  Diff

Differences From Artifact [f68a3eb293]:

  • File src/parallel/solver.rs — part of check-in [0189ea0ba7] at 2019-07-21 19:03:53 on branch async — masterprocess: take threadpool by mutable reference (user: fifr size: 20096)

To Artifact [cb2c7849ad]:

  • File src/parallel/solver.rs — part of check-in [04cb8ebb99] at 2019-07-21 20:52:30 on branch async — parallel::solver: fix ref in doc of `init` (user: fifr size: 20104)

269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
    /// Initialize the solver.
    ///
    /// This will reset the internal data structures so that a new fresh
    /// solution process can be started.
    ///
    /// It will also setup all worker processes.
    ///
    /// This function is automatically called by [`solve`].
    pub fn init(&mut self) -> Result<(), Error<P::Err>> {
        debug!("Initialize solver");

        let n = self.problem.num_variables();
        let m = self.problem.num_subproblems();

        self.data.cur_y.init0(n);







|







269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
    /// Initialize the solver.
    ///
    /// This will reset the internal data structures so that a new fresh
    /// solution process can be started.
    ///
    /// It will also setup all worker processes.
    ///
    /// This function is automatically called by [`Solver::solve`].
    pub fn init(&mut self) -> Result<(), Error<P::Err>> {
        debug!("Initialize solver");

        let n = self.problem.num_variables();
        let m = self.problem.num_subproblems();

        self.data.cur_y.init0(n);