Changeset 1b7e8c51 in rtems


Ignore:
Timestamp:
Jul 6, 2000, 7:34:49 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ab654be
Parents:
3ef54dc
Message:

Switched to using _POSIX_Mutex_Get_interrupt_disable to improve performance.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/mutexlocksupp.c

    r3ef54dc r1b7e8c51  
    3333  register POSIX_Mutex_Control *the_mutex;
    3434  Objects_Locations             location;
     35  ISR_Level                     level;
    3536 
    36   the_mutex = _POSIX_Mutex_Get( mutex, &location );
     37  the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &location, &level );
    3738  switch ( location ) {
    3839    case OBJECTS_REMOTE:
     
    5253        the_mutex->Object.id,
    5354        blocking,
    54         timeout
     55        timeout,
     56        level
    5557      );
    56       _Thread_Enable_dispatch();
    5758      return _POSIX_Mutex_From_core_mutex_status(
    5859        (CORE_mutex_Status) _Thread_Executing->Wait.return_code
  • cpukit/posix/src/mutexlocksupp.c

    r3ef54dc r1b7e8c51  
    3333  register POSIX_Mutex_Control *the_mutex;
    3434  Objects_Locations             location;
     35  ISR_Level                     level;
    3536 
    36   the_mutex = _POSIX_Mutex_Get( mutex, &location );
     37  the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &location, &level );
    3738  switch ( location ) {
    3839    case OBJECTS_REMOTE:
     
    5253        the_mutex->Object.id,
    5354        blocking,
    54         timeout
     55        timeout,
     56        level
    5557      );
    56       _Thread_Enable_dispatch();
    5758      return _POSIX_Mutex_From_core_mutex_status(
    5859        (CORE_mutex_Status) _Thread_Executing->Wait.return_code
Note: See TracChangeset for help on using the changeset viewer.