mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Remove the unused & broken PyThread_*_sema() functions and related constants.
This closes SF patch #504215.
This commit is contained in:
		
							parent
							
								
									72c3bf076f
								
							
						
					
					
						commit
						7bb1c9a11d
					
				
					 11 changed files with 0 additions and 557 deletions
				
			
		|  | @ -209,30 +209,3 @@ void PyThread_release_lock(PyThread_type_lock aLock) | |||
|    | ||||
|   DosExitCritSec(); | ||||
| } | ||||
| 
 | ||||
| /*
 | ||||
|  * Semaphore support. | ||||
|  */ | ||||
| PyThread_type_sema  | ||||
| PyThread_allocate_sema(int value) | ||||
| { | ||||
|   return (PyThread_type_sema) 0; | ||||
| } | ||||
| 
 | ||||
| void  | ||||
| PyThread_free_sema(PyThread_type_sema aSemaphore) | ||||
| { | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| int  | ||||
| PyThread_down_sema(PyThread_type_sema aSemaphore, int waitflag) | ||||
| { | ||||
|   return -1; | ||||
| } | ||||
| 
 | ||||
| void  | ||||
| PyThread_up_sema(PyThread_type_sema aSemaphore) | ||||
| { | ||||
|   dprintf(("%ld: PyThread_up_sema(%p)\n", PyThread_get_thread_ident(), aSemaphore)); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Fred Drake
						Fred Drake