Changeset e214ff4b in rtems


Ignore:
Timestamp:
Feb 12, 2019, 12:18:56 PM (2 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e309f77
Parents:
7fdcd023
git-author:
Sebastian Huber <sebastian.huber@…> (02/12/19 12:18:56)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/12/19 12:20:20)
Message:

posix: Remove unused _POSIX_Get_object_body()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/posix/posixapi.h

    r7fdcd023 re214ff4b  
    2323#include <rtems/score/assert.h>
    2424#include <rtems/score/objectimpl.h>
    25 #include <rtems/score/onceimpl.h>
    2625#include <rtems/score/threadimpl.h>
    2726#include <rtems/seterr.h>
     
    8887}
    8988
    90 /**
    91  * @brief Macro to generate a function body to get a POSIX object by
    92  * identifier.
    93  *
    94  * Generates a function body to get the object for the specified identifier.
    95  * Performs automatic initialization if requested and necessary.  This is an
    96  * ugly macro, since C lacks support for templates.
    97  */
    98 #define _POSIX_Get_object_body( \
    99   type, \
    100   id, \
    101   queue_context, \
    102   info, \
    103   initializer, \
    104   init \
    105 ) \
    106   Objects_Control *the_object; \
    107   if ( id == NULL ) { \
    108     return NULL; \
    109   } \
    110   _Thread_queue_Context_initialize( queue_context ); \
    111   the_object = _Objects_Get( \
    112     (Objects_Id) *id, \
    113     &queue_context->Lock_context.Lock_context, \
    114     info \
    115   ); \
    116   if ( the_object == NULL ) { \
    117     _Once_Lock(); \
    118     if ( *id == initializer ) { \
    119       init( id, NULL ); \
    120     } \
    121     _Once_Unlock(); \
    122     the_object = _Objects_Get( \
    123       (Objects_Id) *id, \
    124       &queue_context->Lock_context.Lock_context, \
    125       info \
    126     ); \
    127   } \
    128   return (type *) the_object
    129 
    13089/*
    13190 * See also The Open Group Base Specifications Issue 7, IEEE Std 1003.1-2008,
Note: See TracChangeset for help on using the changeset viewer.