Changeset d07f582 in rtems


Ignore:
Timestamp:
Jun 15, 2016, 5:59:33 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
5d65d0dd
Parents:
6a631da
git-author:
Sebastian Huber <sebastian.huber@…> (06/15/16 05:59:33)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/15/16 06:05:35)
Message:

posix: Remove superfluous code

Remove double declarations, useless comments and unused functions.

File:
1 edited

Legend:

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

    r6a631da rd07f582  
    5151 */
    5252extern pthread_attr_t _POSIX_Threads_Default_attributes;
    53 
    54 /**
    55  * @brief Copy POSIX Thread attribute structure.
    56  *
    57  * This routine copies the attr2 thread attribute structure
    58  * to the attr1 Thread Attribute structure.
    59  *
    60  * @param[in] dst_attr is a pointer to the thread attribute
    61  * structure to copy into.
    62  *
    63  * @param[out] src_attr is a pointer to the thread attribute
    64  * structure to copy from.
    65  */
    66 RTEMS_INLINE_ROUTINE void _POSIX_Threads_Copy_attributes(
    67   pthread_attr_t        *dst_attr,
    68   const pthread_attr_t  *src_attr
    69 );
    70 
    71 /**
    72  * @brief Free POSIX control block.
    73  *
    74  * This routine frees a pthread control block to the
    75  * inactive chain of free pthread control blocks.
    76  *
    77  * @param[in] the_pthread is a pointer to the thread to free.
    78  */
    79 RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free(
    80   Thread_Control *the_pthread
    81 );
    82 
    83 /**
    84  * @brief POSIX threads initialize user threads body.
    85  *
    86  * This routine initializes the thread attributes structure.
    87  */
    88 RTEMS_INLINE_ROUTINE void _POSIX_Threads_Initialize_attributes(
    89   pthread_attr_t  *attr
    90 );
    9153
    9254/**
     
    156118}
    157119
    158 /*
    159  * _POSIX_Threads_Copy_attributes
    160  */
    161 
    162120RTEMS_INLINE_ROUTINE void _POSIX_Threads_Copy_attributes(
    163121  pthread_attr_t        *dst_attr,
     
    174132}
    175133
    176 /*
    177  *  _POSIX_Threads_Free
    178  */
    179 
    180134RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (
    181135  Thread_Control *the_pthread
     
    184138  _Objects_Free( &_POSIX_Threads_Information.Objects, &the_pthread->Object );
    185139}
    186 
    187 /*
    188  * _POSIX_Threads_Initialize_attributes
    189  */
    190140
    191141RTEMS_INLINE_ROUTINE void _POSIX_Threads_Initialize_attributes(
     
    199149}
    200150
    201 /*
    202  *  _POSIX_Threads_Is_null
    203  */
    204 
    205 RTEMS_INLINE_ROUTINE bool _POSIX_Threads_Is_null (
    206   Thread_Control *the_pthread
    207 )
    208 {
    209   return !the_pthread;
    210 }
    211 
    212151/** @} */
    213152
Note: See TracChangeset for help on using the changeset viewer.