mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	ensure that parallel threads are only invoked when thread count > 1
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									af0ea13570
								
							
						
					
					
						commit
						1d1949e395
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -723,7 +723,7 @@ namespace sat {
 | 
			
		|||
        pop_to_base_level();
 | 
			
		||||
        IF_VERBOSE(2, verbose_stream() << "(sat.sat-solver)\n";);
 | 
			
		||||
        SASSERT(scope_lvl() == 0);
 | 
			
		||||
        if (m_config.m_num_parallel > 0 && !m_par) {
 | 
			
		||||
        if (m_config.m_num_parallel > 1 && !m_par) {
 | 
			
		||||
            return check_par(num_lits, lits);
 | 
			
		||||
        }
 | 
			
		||||
#ifdef CLONE_BEFORE_SOLVING
 | 
			
		||||
| 
						 | 
				
			
			@ -823,7 +823,7 @@ namespace sat {
 | 
			
		|||
                bool first = false;
 | 
			
		||||
                #pragma omp critical (par_solver)
 | 
			
		||||
                {
 | 
			
		||||
                    if (finished_id == UINT_MAX) {
 | 
			
		||||
                    if (finished_id == -1) {
 | 
			
		||||
                        finished_id = i;
 | 
			
		||||
                        first = true;
 | 
			
		||||
                        result = r;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue