Changeset bbd6d27a in rtems


Ignore:
Timestamp:
Apr 15, 2016, 2:27:56 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b33983f
Parents:
bdf6cc2
git-author:
Sebastian Huber <sebastian.huber@…> (04/15/16 14:27:56)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/21/16 05:29:37)
Message:

score: Delete unused CORE_RWLock_Attributes

Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/prwlockinit.c

    rbdf6cc2 rbbd6d27a  
    9898{
    9999  POSIX_RWLock_Control        *the_rwlock;
    100   CORE_RWLock_Attributes       the_attributes;
    101100  pthread_rwlockattr_t         default_attr;
    102101  const pthread_rwlockattr_t  *the_attr;
     
    132131  }
    133132
    134   /*
    135    * Convert from POSIX attributes to Core RWLock attributes
    136    *
    137    * NOTE: Currently there are no core rwlock attributes
    138    */
    139   _CORE_RWLock_Initialize_attributes( &the_attributes );
    140 
    141133  the_rwlock = _POSIX_RWLock_Allocate();
    142134
     
    146138  }
    147139
    148   _CORE_RWLock_Initialize( &the_rwlock->RWLock, &the_attributes );
     140  _CORE_RWLock_Initialize( &the_rwlock->RWLock );
    149141
    150142  _Objects_Open_u32(
  • cpukit/score/include/rtems/score/corerwlock.h

    rbdf6cc2 rbbd6d27a  
    5252
    5353/**
    54  *  The following defines the control block used to manage the
    55  *  attributes of each RWLock.
    56  */
    57 typedef struct {
    58   /** This field indicates XXX.
    59    */
    60   int XXX;
    61 }   CORE_RWLock_Attributes;
    62 
    63 /**
    6454 *  The following defines the control block used to manage each
    6555 *  RWLock.
     
    7060   */
    7161  Thread_queue_Control     Wait_queue;
    72   /** This element is the set of attributes which define this instance's
    73    *  behavior.
    74    */
    75   CORE_RWLock_Attributes  Attributes;
    7662  /** This element is the current state of the RWLock.
    7763   */
  • cpukit/score/include/rtems/score/corerwlockimpl.h

    rbdf6cc2 rbbd6d27a  
    7575 *
    7676 *  @param[in] the_rwlock is the RWLock to initialize
    77  *  @param[in] the_rwlock_attributes define the behavior of this instance
    7877 */
    7978void _CORE_RWLock_Initialize(
    80   CORE_RWLock_Control       *the_rwlock,
    81   CORE_RWLock_Attributes    *the_rwlock_attributes
     79  CORE_RWLock_Control *the_rwlock
    8280);
    8381
     
    143141);
    144142
    145 /**
    146  * This method is used to initialize core rwlock attributes.
    147  *
    148  * @param[in] the_attributes pointer to the attributes to initialize.
    149  */
    150 RTEMS_INLINE_ROUTINE void _CORE_RWLock_Initialize_attributes(
    151   CORE_RWLock_Attributes *the_attributes
    152 )
    153 {
    154   the_attributes->XXX = 0;
    155 }
    156 
    157143/** @} */
    158144
  • cpukit/score/src/corerwlock.c

    rbdf6cc2 rbbd6d27a  
    2323
    2424void _CORE_RWLock_Initialize(
    25   CORE_RWLock_Control       *the_rwlock,
    26   CORE_RWLock_Attributes    *the_rwlock_attributes
     25  CORE_RWLock_Control *the_rwlock
    2726)
    2827{
    29 
    30   the_rwlock->Attributes                = *the_rwlock_attributes;
    31 /*
    32   the_rwlock->number_of_waiting_threads = 0;
    33 */
    3428  the_rwlock->number_of_readers = 0;
    3529  the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;
Note: See TracChangeset for help on using the changeset viewer.