Changeset 0e49372a in rtems


Ignore:
Timestamp:
Apr 19, 2021, 6:06:27 PM (3 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
ea1dc0ee
Parents:
69bde47
git-author:
Sebastian Huber <sebastian.huber@…> (04/19/21 18:06:27)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/20/21 05:01:13)
Message:

score: Remove unused _Thread_queue_Dequeue()

Last use was removed by:

commit 54550e048d3a49435912797d2024f80671e93267
Author: Sebastian Huber <sebastian.huber@…>
Date: Fri May 13 08:16:30 2016 +0200

posix: Rework pthread_join()

Rework pthread_join() to use _Thread_Join().

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/score/threadqimpl.h

    r69bde47 r0e49372a  
    792792  _ISR_lock_ISR_enable( &queue_context->Lock_context.Lock_context );
    793793}
    794 #endif
    795 
    796 /**
    797  * @brief Dequeues the first thread waiting on the thread queue and returns it.
    798  *
    799  * @param the_thread_queue The thread queue for the operation.
    800  * @param operations The thread queue operations.
    801  *
    802  * @return The first locked thread.
    803  */
    804 Thread_Control *_Thread_queue_Do_dequeue(
    805   Thread_queue_Control          *the_thread_queue,
    806   const Thread_queue_Operations *operations
    807 #if defined(RTEMS_MULTIPROCESSING)
    808   ,
    809   Thread_queue_MP_callout        mp_callout
    810 #endif
    811 );
    812 
    813 /**
    814  *  @brief Gets a pointer to a thread waiting on the_thread_queue.
    815  *
    816  *  This function returns a pointer to a thread waiting on
    817  *  the_thread_queue.  The selection of this thread is based on
    818  *  the discipline of the_thread_queue.  If no threads are waiting
    819  *  on the_thread_queue, then NULL is returned.
    820  *
    821  *  - INTERRUPT LATENCY:
    822  *    + single case
    823  */
    824 #if defined(RTEMS_MULTIPROCESSING)
    825   #define _Thread_queue_Dequeue( \
    826     the_thread_queue, \
    827     operations, \
    828     mp_callout \
    829   ) \
    830     _Thread_queue_Do_dequeue( \
    831       the_thread_queue, \
    832       operations, \
    833       mp_callout \
    834     )
    835 #else
    836   #define _Thread_queue_Dequeue( \
    837     the_thread_queue, \
    838     operations, \
    839     mp_callout \
    840   ) \
    841     _Thread_queue_Do_dequeue( \
    842       the_thread_queue, \
    843       operations \
    844     )
    845794#endif
    846795
  • cpukit/score/src/threadqenqueue.c

    r69bde47 r0e49372a  
    747747#endif
    748748
    749 Thread_Control *_Thread_queue_Do_dequeue(
    750   Thread_queue_Control          *the_thread_queue,
    751   const Thread_queue_Operations *operations
    752 #if defined(RTEMS_MULTIPROCESSING)
    753   ,
    754   Thread_queue_MP_callout        mp_callout
    755 #endif
    756 )
    757 {
    758   Thread_queue_Context  queue_context;
    759   Thread_Control       *the_thread;
    760 
    761   _Thread_queue_Context_initialize( &queue_context );
    762   _Thread_queue_Context_set_MP_callout( &queue_context, mp_callout );
    763   _Thread_queue_Acquire( the_thread_queue, &queue_context );
    764 
    765   the_thread = _Thread_queue_First_locked( the_thread_queue, operations );
    766 
    767   if ( the_thread != NULL ) {
    768     _Thread_queue_Extract_critical(
    769       &the_thread_queue->Queue,
    770       operations,
    771       the_thread,
    772       &queue_context
    773     );
    774   } else {
    775     _Thread_queue_Release( the_thread_queue, &queue_context );
    776   }
    777 
    778   return the_thread;
    779 }
    780 
    781749#if defined(RTEMS_MULTIPROCESSING)
    782750void _Thread_queue_Unblock_proxy(
Note: See TracChangeset for help on using the changeset viewer.