* properly enable threading support inside ptmalloc2=. Thanks to Tim for
figuring out that ptmalloc2 was borked. This commit was SVN r9251.
Этот коммит содержится в:
родитель
d0f5f8a242
Коммит
710bca2df4
@ -171,8 +171,8 @@ EOF
|
||||
fi
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(OMPI_HAVE_POSIX_THREADS, test "$thread_type" = "posix")
|
||||
AM_CONDITIONAL(OMPI_HAVE_SOLARIS_THREADS, test "$thread_type" = "solaris")
|
||||
AM_CONDITIONAL(OMPI_HAVE_POSIX_THREADS, test "$THREAD_TYPE" = "posix")
|
||||
AM_CONDITIONAL(OMPI_HAVE_SOLARIS_THREADS, test "$THREAD_TYPE" = "solaris")
|
||||
|
||||
#
|
||||
# Now configure the whole MPI and progress thread gorp
|
||||
|
@ -21,7 +21,10 @@
|
||||
AM_CPPFLAGS = -DMALLOC_DEBUG=0
|
||||
|
||||
if OMPI_HAVE_POSIX_THREADS
|
||||
AM_CPPFLAGS += -DUSE_TSD_DATA_HACK \
|
||||
AM_CPPFLAGS += \
|
||||
-D_GNU_SOURCE=1 \
|
||||
-DUSE_TSD_DATA_HACK=1 \
|
||||
-DMALLOC_HOOKS=1 \
|
||||
-I$(srcdir)/sysdeps/pthread
|
||||
endif
|
||||
if OMPI_HAVE_SOLARIS_THREADS
|
||||
|
@ -78,7 +78,7 @@ static inline int mutex_trylock(mutex_t *m) {
|
||||
}
|
||||
static inline int mutex_unlock(mutex_t *m) {
|
||||
m->lock = 0;
|
||||
__asm __volatile ("" : "=m" (m->lock) : "0" (m->lock));
|
||||
__asm __volatile ("" : : : "memory");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user