RsBundle  Diff

Differences From Artifact [9c80700875]:

  • File src/solver/sync.rs — part of check-in [21b66facda] at 2022-06-13 08:53:26 on branch solver-state — sync: add error result to `new_with_state` (user: fifr size: 32250)

To Artifact [0670463a87]:

  • File src/solver/sync.rs — part of check-in [162ca7268e] at 2022-06-13 17:39:08 on branch solver-state — sync: remove `new_with_state` method. Use `set_state` instead. (user: fifr size: 31922)

427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
            cnt_null: 0,
            cnt_evals: 0,

            start_time: Instant::now(),
        }
    }

    pub fn new_with_state(
        problem: P,
        state: SyncSolverState<<M::MasterProblem as MasterProblem<<P as FirstOrderProblem>::Minorant>>::State>,
    ) -> Result<Self, P, M>
    where
        M: Default,
    {
        let mut solver = Self::new(problem);
        solver.set_state(state)?;
        Ok(solver)
    }

    /// Return the underlying threadpool.
    ///
    /// In order to use the same threadpool for concurrent processes,
    /// just clone the returned `ThreadPool`.
    pub fn threadpool(&self) -> &ThreadPool {
        &self.threadpool
    }







<
<
<
<
<
<
<
<
<
<
<
<







427
428
429
430
431
432
433












434
435
436
437
438
439
440
            cnt_null: 0,
            cnt_evals: 0,

            start_time: Instant::now(),
        }
    }













    /// Return the underlying threadpool.
    ///
    /// In order to use the same threadpool for concurrent processes,
    /// just clone the returned `ThreadPool`.
    pub fn threadpool(&self) -> &ThreadPool {
        &self.threadpool
    }