From 03acc5915e002f0b03eee9e86212209705cca6d6 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 14 Aug 2013 10:21:41 +1000 Subject: posix: Change pthread_once to be SMP safe. Change pthread_once from using disabled pre-emption to using a pthread mutex making it SMP safe. GCC using a posix threading model uses pthread_once. The pthread mutex requires at least 1 mutex is configured so confdefs.h has been updated to account for the internal mutex. --- cpukit/posix/preinstall.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpukit/posix/preinstall.am') diff --git a/cpukit/posix/preinstall.am b/cpukit/posix/preinstall.am index 093a9df914..d0e238cd15 100644 --- a/cpukit/posix/preinstall.am +++ b/cpukit/posix/preinstall.am @@ -84,6 +84,10 @@ $(PROJECT_INCLUDE)/rtems/posix/muteximpl.h: include/rtems/posix/muteximpl.h $(PR $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/muteximpl.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/muteximpl.h +$(PROJECT_INCLUDE)/rtems/posix/onceimpl.h: include/rtems/posix/onceimpl.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) + $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/onceimpl.h +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/onceimpl.h + $(PROJECT_INCLUDE)/rtems/posix/posixapi.h: include/rtems/posix/posixapi.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/posixapi.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/posixapi.h -- cgit v1.2.3