Changeset b33983f in rtems


Ignore:
Timestamp:
Apr 19, 2016, 9:06:13 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
5cc6bf4
Parents:
bbd6d27a
git-author:
Sebastian Huber <sebastian.huber@…> (04/19/16 09:06:13)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/21/16 05:29:37)
Message:

score: Simplify _CORE_message_queue_Do_close()

Remove superfluous _CORE_message_queue_Flush() since we completely
re-initialize the structure in _CORE_message_queue_Initialize().

File:
1 edited

Legend:

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

    rbbd6d27a rb33983f  
    3232)
    3333{
    34   ISR_lock_Context lock_context;
    35 
    3634  /*
    3735   *  This will flush blocked threads whether they were blocked on
     
    4745  );
    4846
    49   /*
    50    *  This removes all messages from the pending message queue.  Since
    51    *  we just flushed all waiting threads, we don't have to worry about
    52    *  the flush satisfying any blocked senders as a side-effect.
    53    */
    54 
    55   _ISR_lock_ISR_disable( &lock_context );
    56   (void) _CORE_message_queue_Flush( the_message_queue, &lock_context );
    57 
    5847  (void) _Workspace_Free( the_message_queue->message_buffers );
    5948
Note: See TracChangeset for help on using the changeset viewer.