git-svn-id: http://www.frescor.org/private/svn/frescor/fosa/trunk@1554
35b4ef3e-fd22-0410-ab77-
dab3279adceb
#include "fosa_configuration_parameters.h"
#include "fosa_threads_and_signals.h"
#include "fosa_configuration_parameters.h"
#include "fosa_threads_and_signals.h"
+#ifdef OMK_FOR_USER /* If compiled by OMK, use the config */
+#include "fosa_config.h"
+#endif
+
/*************************
* Storage of thread-specific keys
*************************/
/*************************
* Storage of thread-specific keys
*************************/
ret = pthread_mutexattr_init(&attr);
if (ret) return errno;
ret = pthread_mutexattr_init(&attr);
if (ret) return errno;
+#ifndef CONFIG_NO_PRIO_INHERIT /* Not supported on older systems */
ret = pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT);
if (ret) return errno;
ret = pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT);
if (ret) return errno;
ret = pthread_mutex_init(&key_lock,&attr);
if (ret) return errno;
ret = pthread_mutex_init(&key_lock,&attr);
if (ret) return errno;