mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	bpo-33608: Revert "Factor out a private, per-interpreter _Py_AddPendingCall()." (gh-12806)
This reverts commit f13c5c8b94 (gh-12360).
			
			
This commit is contained in:
		
							parent
							
								
									f938d8be4c
								
							
						
					
					
						commit
						b75b1a3504
					
				
					 11 changed files with 108 additions and 151 deletions
				
			
		|  | @ -1146,7 +1146,7 @@ Py_FinalizeEx(void) | |||
|     interp = tstate->interp; | ||||
| 
 | ||||
|     // Make any remaining pending calls.
 | ||||
|     _Py_FinishPendingCalls(interp); | ||||
|     _Py_FinishPendingCalls(); | ||||
| 
 | ||||
|     /* The interpreter is still entirely intact at this point, and the
 | ||||
|      * exit funcs may be relying on that.  In particular, if some thread | ||||
|  | @ -1552,9 +1552,6 @@ Py_EndInterpreter(PyThreadState *tstate) | |||
|     // Wrap up existing "threading"-module-created, non-daemon threads.
 | ||||
|     wait_for_thread_shutdown(); | ||||
| 
 | ||||
|     // Make any remaining pending calls.
 | ||||
|     _Py_FinishPendingCalls(interp); | ||||
| 
 | ||||
|     call_py_exitfuncs(interp); | ||||
| 
 | ||||
|     if (tstate != interp->tstate_head || tstate->next != NULL) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Eric Snow
						Eric Snow