From c09db57f37e02e8458e3bffce689774546845bef Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 28 Nov 2016 13:28:32 +0100 Subject: score: Fix thread queue context initialization Initialize the thread queue context with invalid data in debug configurations to catch missing set up steps. --- cpukit/posix/include/rtems/posix/posixapi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/posix/include/rtems/posix') diff --git a/cpukit/posix/include/rtems/posix/posixapi.h b/cpukit/posix/include/rtems/posix/posixapi.h index 12baa75eea..b35874d8ea 100644 --- a/cpukit/posix/include/rtems/posix/posixapi.h +++ b/cpukit/posix/include/rtems/posix/posixapi.h @@ -89,7 +89,7 @@ RTEMS_INLINE_ROUTINE int _POSIX_Zero_or_minus_one_plus_errno( * @brief Macro to generate a function body to get a POSIX object by * identifier. * - * Generates a function body to get the object for the specified indentifier. + * Generates a function body to get the object for the specified identifier. * Performs automatic initialization if requested and necessary. This is an * ugly macro, since C lacks support for templates. */ @@ -105,6 +105,7 @@ RTEMS_INLINE_ROUTINE int _POSIX_Zero_or_minus_one_plus_errno( if ( id == NULL ) { \ return NULL; \ } \ + _Thread_queue_Initialize( queue_context ); \ the_object = _Objects_Get( \ (Objects_Id) *id, \ &queue_context->Lock_context.Lock_context, \ -- cgit v1.2.3