Changeset 3b3552bf in rtems


Ignore:
Timestamp:
Aug 3, 2016, 11:40:26 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
ff2e6c64
Parents:
ec735c6a
git-author:
Sebastian Huber <sebastian.huber@…> (08/03/16 11:40:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/03/16 11:56:06)
Message:

posix: Fix for RTEMS_DEBUG

File:
1 edited

Legend:

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

    rec735c6a r3b3552bf  
    4848  thread_1 = _Thread_Get( t1, &lock_context_1 );
    4949  thread_2 = _Thread_Get( t2, &lock_context_2 );
    50   _ISR_lock_ISR_enable( &lock_context_2 );
    51   _ISR_lock_ISR_enable( &lock_context_1 );
     50
     51  if ( thread_2 != NULL ) {
     52    _ISR_lock_ISR_enable( &lock_context_2 );
     53  }
     54
     55  if ( thread_1 != NULL ) {
     56    _ISR_lock_ISR_enable( &lock_context_1 );
     57  }
    5258
    5359  return thread_1 != NULL && thread_1 == thread_2;
Note: See TracChangeset for help on using the changeset viewer.