mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 03:32:28 +00:00 
			
		
		
		
	address race condition in cleanup methods
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									19a8fa8a25
								
							
						
					
					
						commit
						904ab4bf9e
					
				
					 39 changed files with 115 additions and 264 deletions
				
			
		|  | @ -119,17 +119,12 @@ public: | |||
|      | ||||
|     virtual void cleanup() { | ||||
|         ast_manager & m = m_imp->m(); | ||||
|         imp * d = m_imp; | ||||
|         imp * d = alloc(imp, m, m_params); | ||||
|         #pragma omp critical (tactic_cancel) | ||||
|         { | ||||
|             m_imp = 0; | ||||
|             std::swap(d, m_imp); | ||||
|         } | ||||
|         dealloc(d); | ||||
|         d = alloc(imp, m, m_params); | ||||
|         #pragma omp critical (tactic_cancel) | ||||
|         { | ||||
|             m_imp = d; | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     virtual void set_cancel(bool f) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue