diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-04-25 22:41:58 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-04-25 22:41:58 +0200 |
commit | d20912e67d810ce5eb9dc1b8f8afd8c22aa2451b (patch) | |
tree | 987f0fd1150c26e230547b21c076f867fca1b1e9 /libguile/threads.h | |
parent | bbec4602457ed3e139e9dae99b4b495a3bc5eb71 (diff) | |
download | guile-d20912e67d810ce5eb9dc1b8f8afd8c22aa2451b.tar.gz |
Move `{total,current}-processor-count' outside of `posix.c'.
* libguile/posix.c (scm_total_processor_count,
scm_current_processor_count): Move to...
* libguile/threads.c: ... here.
* libguile/posix.h (scm_total_processor_count,
scm_current_processor_count): Move declarations to...
* libguile/threads.h: ... here.
* test-suite/tests/posix.test ("nproc"): Move tests to...
* test-suite/tests/threads.test: ... here.
Diffstat (limited to 'libguile/threads.h')
-rw-r--r-- | libguile/threads.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libguile/threads.h b/libguile/threads.h index 9e44684e1..609262a19 100644 --- a/libguile/threads.h +++ b/libguile/threads.h @@ -230,6 +230,9 @@ SCM_API int scm_pthread_cond_timedwait (pthread_cond_t *cond, SCM_API unsigned int scm_std_sleep (unsigned int); SCM_API unsigned long scm_std_usleep (unsigned long); +SCM_API SCM scm_total_processor_count (void); +SCM_API SCM scm_current_processor_count (void); + #endif /* SCM_THREADS_H */ /* |