[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.2-193-g7fee8d6
Service Account
noreply at mpich.org
Thu Feb 18 09:31:21 CST 2016
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".
The branch, master has been updated
via 7fee8d6406c73130f6ca311294fa37570455bf87 (commit)
from 72957514942eb9ad4657306f4abc52b6a142273a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/7fee8d6406c73130f6ca311294fa37570455bf87
commit 7fee8d6406c73130f6ca311294fa37570455bf87
Author: Ken Raffenetti <raffenet at mcs.anl.gov>
Date: Tue Feb 16 16:03:24 2016 -0600
test/mpi/mtestthread: header file cleanup
Removes a preprocessor define (USE_PTHREADS) that duplicates existing
logic and is used in only one place.
Signed-off-by: Rob Latham <robl at mcs.anl.gov>
diff --git a/test/mpi/include/mpithreadtest.h b/test/mpi/include/mpithreadtest.h
index 669f933..2bc6899 100644
--- a/test/mpi/include/mpithreadtest.h
+++ b/test/mpi/include/mpithreadtest.h
@@ -23,7 +23,6 @@
#define MTEST_THREAD_HANDLE HANDLE
#define MTEST_THREAD_LOCK_TYPE HANDLE
#elif defined(HAVE_PTHREAD_H)
-#define USE_PTHREADS 1
#include <pthread.h>
#define MTEST_THREAD_RETURN_TYPE void *
#define MTEST_THREAD_HANDLE pthread_t
diff --git a/test/mpi/threads/util/mtestthread.c b/test/mpi/threads/util/mtestthread.c
index e091e6a..3ad72f4 100644
--- a/test/mpi/threads/util/mtestthread.c
+++ b/test/mpi/threads/util/mtestthread.c
@@ -190,7 +190,7 @@ int MTest_thread_lock_free(MTEST_THREAD_LOCK_TYPE * lock)
}
#endif
-#if defined(HAVE_PTHREAD_BARRIER_INIT) && defined(USE_PTHREADS)
+#if defined(HAVE_PTHREAD_H) && defined(HAVE_PTHREAD_BARRIER_INIT)
static MTEST_THREAD_LOCK_TYPE barrierLock;
static pthread_barrier_t barrier;
static int bcount = -1;
-----------------------------------------------------------------------
Summary of changes:
test/mpi/include/mpithreadtest.h | 1 -
test/mpi/threads/util/mtestthread.c | 2 +-
2 files changed, 1 insertions(+), 2 deletions(-)
hooks/post-receive
--
MPICH primary repository
More information about the commits
mailing list