RsBundle  Diff

Differences From Artifact [58ec49b1a3]:

  • File src/solver/sync.rs — part of check-in [fa17475e9b] at 2019-11-22 21:21:48 on branch trunk — sync: simplify a `map_err` (user: fifr size: 30725)

To Artifact [0a7c64e5df]:

  • File src/solver/sync.rs — part of check-in [f99b75ba31] at 2019-11-27 09:40:28 on branch trunk — sync: show number of CPUs in info message (user: fifr size: 30834)

454
455
456
457
458
459
460


461
462
463
464
465
466
467
468

469
470
471
472
473
474
475
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469

470
471
472
473
474
475
476
477







+
+







-
+







        M: Default,
    {
        Self::with_master(problem, M::default())
    }

    /// Create a new parallel bundle solver.
    pub fn with_master(problem: P, master: M) -> Self {
        let ncpus = num_cpus::get();
        info!("Initializing synchronous solver with {} CPUs", ncpus);
        Solver {
            params: Parameters::default(),
            terminator: Default::default(),
            weighter: Default::default(),
            problem,
            data: SolverData::default(),

            threadpool: ThreadPool::with_name("Parallel bundle solver".to_string(), num_cpus::get()),
            threadpool: ThreadPool::with_name("Synchronous parallel bundle solver".to_string(), ncpus),
            master,
            master_proc: None,
            client_tx: None,
            client_rx: None,

            cnt_descent: 0,
            cnt_null: 0,