mirror of https://github.com/python/cpython
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
|
@ -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…
Reference in New Issue