summaryrefslogtreecommitdiffstats
path: root/src/pthreads-test.c
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-05-19 21:50:39 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-05-19 21:50:39 (GMT)
commit43ba8ad2f1897b03f1ceadec840029e7a24cdf6c (patch)
tree22449e64616cdc1439aab41fc510c6250abcd973 /src/pthreads-test.c
parentbc2cfdc051a64fd4212344e17563844b509ce9d1 (diff)
downloadmxe-43ba8ad2f1897b03f1ceadec840029e7a24cdf6c.zip
mxe-43ba8ad2f1897b03f1ceadec840029e7a24cdf6c.tar.gz
mxe-43ba8ad2f1897b03f1ceadec840029e7a24cdf6c.tar.bz2
improved test programs of packages libgomp and pthreads
Diffstat (limited to 'src/pthreads-test.c')
-rw-r--r--src/pthreads-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pthreads-test.c b/src/pthreads-test.c
index fe212b5..88d3378 100644
--- a/src/pthreads-test.c
+++ b/src/pthreads-test.c
@@ -4,12 +4,12 @@
#include <stdio.h>
#include <pthread.h>
-#define N 10
+#define N 4
void *thread_fn(void *p)
{
const int *arg = p;
- fprintf(stderr, "Hello from thread %d\n", *arg);
+ fprintf(stderr, "Hello from thread %d, nthreads %d\n", *arg, N);
return NULL;
}