diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-12-07 23:10:41 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-12-07 23:13:20 +0100 |
commit | f0c0141fe4bd478edc8205b1eae793f0474d4aa3 (patch) | |
tree | 04c7f3bc6776d5ebdd0790dab9a92446647799f6 /libguile/posix.h | |
parent | 3ae78cac88d38b9ab913ee0100b00ad1151db306 (diff) | |
download | guile-f0c0141fe4bd478edc8205b1eae793f0474d4aa3.tar.gz |
Add `total-processor-count' and `current-processor-count'.
* libguile/posix.c (scm_total_processor_count,
scm_current_processor_count): New functions.
* libguile/posix.h (scm_total_processor_count,
scm_current_processor_count): New declarations.
* test-suite/tests/posix.test ("nproc"): New test prefix.
* doc/ref/posix.texi (Processes): Document `total-processor-count' and
`current-processor-count'.
Diffstat (limited to 'libguile/posix.h')
-rw-r--r-- | libguile/posix.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libguile/posix.h b/libguile/posix.h index aa5e12cbd..e2e19ddd2 100644 --- a/libguile/posix.h +++ b/libguile/posix.h @@ -91,6 +91,8 @@ SCM_API SCM scm_sethostname (SCM name); SCM_API SCM scm_gethostname (void); SCM_API SCM scm_getaffinity (SCM pid); SCM_API SCM scm_setaffinity (SCM pid, SCM cpu_set); +SCM_API SCM scm_total_processor_count (void); +SCM_API SCM scm_current_processor_count (void); SCM_INTERNAL void scm_init_posix (void); SCM_INTERNAL scm_i_pthread_mutex_t scm_i_locale_mutex; |