Changeset 0147d5e in rtems


Ignore:
Timestamp:
Jul 3, 2000, 3:49:58 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
8bc62aeb
Parents:
feb93ede
Message:

Added blocked_count field to allow for optimizations.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/include/rtems/score/coremutex.h

    rfeb93ede r0147d5e  
    120120  unsigned32              lock;
    121121  unsigned32              nest_count;
     122  unsigned32              blocked_count;
    122123  Thread_Control         *holder;
    123124  Objects_Id              holder_id;
  • c/src/exec/score/src/coremutex.c

    rfeb93ede r0147d5e  
    5555 */
    5656
    57   the_mutex->Attributes = *the_mutex_attributes;
    58   the_mutex->lock       = initial_lock;
     57  the_mutex->Attributes    = *the_mutex_attributes;
     58  the_mutex->lock          = initial_lock;
     59  the_mutex->blocked_count = 0;
    5960
    6061#if 0
  • cpukit/score/include/rtems/score/coremutex.h

    rfeb93ede r0147d5e  
    120120  unsigned32              lock;
    121121  unsigned32              nest_count;
     122  unsigned32              blocked_count;
    122123  Thread_Control         *holder;
    123124  Objects_Id              holder_id;
  • cpukit/score/src/coremutex.c

    rfeb93ede r0147d5e  
    5555 */
    5656
    57   the_mutex->Attributes = *the_mutex_attributes;
    58   the_mutex->lock       = initial_lock;
     57  the_mutex->Attributes    = *the_mutex_attributes;
     58  the_mutex->lock          = initial_lock;
     59  the_mutex->blocked_count = 0;
    5960
    6061#if 0
Note: See TracChangeset for help on using the changeset viewer.