projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dc1916
)
make rtstutter use pa_ncpus()
author
Lennart Poettering
<lennart@poettering.net>
Thu, 22 Jan 2009 01:20:00 +0000
(
02:20
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 22 Jan 2009 01:20:00 +0000
(
02:20
+0100)
src/tests/rtstutter.c
patch
|
blob
|
history
diff --git
a/src/tests/rtstutter.c
b/src/tests/rtstutter.c
index
6b0cb8f
..
fc23d95
100644
(file)
--- a/
src/tests/rtstutter.c
+++ b/
src/tests/rtstutter.c
@@
-36,6
+36,7
@@
#include <pulsecore/log.h>
#include <pulsecore/macro.h>
+#include <pulsecore/core-util.h>
static int msec_lower, msec_upper;
@@
-106,7
+107,7
@@
int main(int argc, char*argv[]) {
pa_log_notice("Creating random latencies in the range of %ims to %ims.", msec_lower, msec_upper);
- for (n = 1; n <
sysconf(_SC_NPROCESSORS_CONF
); n++) {
+ for (n = 1; n <
pa_ncpus(
); n++) {
pthread_t t;
pa_assert_se(pthread_create(&t, NULL, work, PA_INT_TO_PTR(n)) == 0);
}