diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-05-19 21:50:39 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-05-19 21:50:39 (GMT) |
commit | 43ba8ad2f1897b03f1ceadec840029e7a24cdf6c (patch) | |
tree | 22449e64616cdc1439aab41fc510c6250abcd973 /src/pthreads-test.c | |
parent | bc2cfdc051a64fd4212344e17563844b509ce9d1 (diff) | |
download | mxe-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.c | 4 |
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; } |