mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	bpo-46696: Add socket.SO_INCOMING_CPU constant (#31237)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
		
							parent
							
								
									b295a92c50
								
							
						
					
					
						commit
						d5dfcd4489
					
				
					 3 changed files with 13 additions and 0 deletions
				
			
		|  | @ -575,6 +575,15 @@ Constants | |||
| 
 | ||||
|    .. availability:: FreeBSD. | ||||
| 
 | ||||
| .. data:: SO_INCOMING_CPU | ||||
| 
 | ||||
|    Constant to optimize CPU locality, to be used in conjunction with | ||||
|    :data:`SO_REUSEPORT`. | ||||
| 
 | ||||
|   .. versionadded:: 3.11 | ||||
| 
 | ||||
|   .. availability:: Linux >= 3.9 | ||||
| 
 | ||||
| Functions | ||||
| ^^^^^^^^^ | ||||
| 
 | ||||
|  |  | |||
|  | @ -0,0 +1 @@ | |||
| Add ``SO_INCOMING_CPU`` constant to :mod:`socket`. | ||||
|  | @ -7505,6 +7505,9 @@ PyInit__socket(void) | |||
| #ifdef SO_EXCLUSIVEADDRUSE | ||||
|     PyModule_AddIntMacro(m, SO_EXCLUSIVEADDRUSE); | ||||
| #endif | ||||
| #ifdef SO_INCOMING_CPU | ||||
|     PyModule_AddIntMacro(m, SO_INCOMING_CPU); | ||||
| #endif | ||||
| 
 | ||||
| #ifdef  SO_KEEPALIVE | ||||
|     PyModule_AddIntMacro(m, SO_KEEPALIVE); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 David CARLIER
						David CARLIER