summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorDonghee Na <donghee.na@python.org>2023-10-10 10:00:09 (GMT)
committerGitHub <noreply@github.com>2023-10-10 10:00:09 (GMT)
commit0362cbf908aff2b87298f8a9422e7b368f890071 (patch)
tree7d5ae0e1f44801fe2102cb783938c60ef99b7ae4 /Include/cpython
parent5aa62a8de15212577a13966710b3aede46e93824 (diff)
downloadcpython-0362cbf908aff2b87298f8a9422e7b368f890071.zip
cpython-0362cbf908aff2b87298f8a9422e7b368f890071.tar.gz
cpython-0362cbf908aff2b87298f8a9422e7b368f890071.tar.bz2
gh-109595: Add -Xcpu_count=<n> cmdline for container users (#109667)
--------- Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/initconfig.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/cpython/initconfig.h b/Include/cpython/initconfig.h
index 5d7b4e2..808c105 100644
--- a/Include/cpython/initconfig.h
+++ b/Include/cpython/initconfig.h
@@ -180,6 +180,8 @@ typedef struct PyConfig {
int safe_path;
int int_max_str_digits;
+ int cpu_count;
+
/* --- Path configuration inputs ------------ */
int pathconfig_warnings;
wchar_t *program_name;