diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-28 13:28:32 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-11-28 16:08:43 +0100 |
commit | c09db57f37e02e8458e3bffce689774546845bef (patch) | |
tree | 7afe403fa39ff81cedf0c83df1a73b950a871c1f /cpukit/posix/include/rtems/posix/posixapi.h | |
parent | or1k: Avoid multiple iterations over cache (diff) | |
download | rtems-c09db57f37e02e8458e3bffce689774546845bef.tar.bz2 |
score: Fix thread queue context initialization
Initialize the thread queue context with invalid data in debug
configurations to catch missing set up steps.
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/include/rtems/posix/posixapi.h | 3 |
1 files changed, 2 insertions, 1 deletions
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, \ |