Changeset 7a904cbe in rtems


Ignore:
Timestamp:
Mar 24, 2016, 2:33:34 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a62c3aa3
Parents:
a8ac273c
git-author:
Sebastian Huber <sebastian.huber@…> (03/24/16 14:33:34)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/29/16 07:38:48)
Message:

score: Fix CORE mutex RTEMS_MULTIPROCESSING

Make sure that the thread proxy is registered as the mutex owner.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/coremutexsurrender.c

    ra8ac273c r7a904cbe  
    188188    bool unblock;
    189189
     190    the_mutex->holder     = the_thread;
     191    the_mutex->nest_count = 1;
     192
    190193    /*
    191194     * We must extract the thread now since this will restore its default
     
    206209#endif
    207210    {
    208       the_mutex->holder     = the_thread;
    209       the_mutex->nest_count = 1;
    210 
    211211      switch ( the_mutex->Attributes.discipline ) {
    212212        case CORE_MUTEX_DISCIPLINES_FIFO:
     
    238238#if defined(RTEMS_MULTIPROCESSING)
    239239    if ( !_Objects_Is_local_id( the_thread->Object.id ) ) {
    240 
    241       the_mutex->holder     = NULL;
    242       the_mutex->nest_count = 1;
    243 
    244240      ( *api_mutex_mp_support)( the_thread, id );
    245 
    246241    }
    247242
Note: See TracChangeset for help on using the changeset viewer.