Changeset c57f26bd in rtems


Ignore:
Timestamp:
Jan 30, 2008, 2:56:57 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
7d17145
Parents:
84ec364
Message:

2008-01-30 Joel Sherrill <joel.sherrill@…>

  • score/Makefile.am, score/include/rtems/score/threadq.h, score/inline/rtems/score/threadq.inl: _Thread_queue_Process_timeout was really too complex to be inlined.
  • score/src/threadqprocesstimeout.c: New file.
Location:
cpukit
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r84ec364 rc57f26bd  
     12008-01-30      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * score/Makefile.am, score/include/rtems/score/threadq.h,
     4        score/inline/rtems/score/threadq.inl: _Thread_queue_Process_timeout
     5        was really too complex to be inlined.
     6        * score/src/threadqprocesstimeout.c: New file.
     7
    182008-01-29      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • cpukit/score/Makefile.am

    r84ec364 rc57f26bd  
    159159    src/threadqextractwithproxy.c src/threadqfirst.c src/threadqfirstfifo.c \
    160160    src/threadqfirstpriority.c src/threadqflush.c src/threadqrequeue.c \
    161     src/threadqtimeout.c
     161    src/threadqprocesstimeout.c src/threadqtimeout.c
    162162
    163163## TIMESPEC_C_FILES
  • cpukit/score/include/rtems/score/threadq.h

    r84ec364 rc57f26bd  
    271271);
    272272
     273/**
     274 * @brief Process Thread Queue Timeout
     275 *
     276 * This is a shared helper routine which makes it easier to have multiple
     277 * object class specific timeout routines.
     278 *
     279 * @param[in] the_thread is the thread to extract
     280 *
     281 * @note This method assumes thread dispatching is disabled
     282 *       and is expected to be called via the processing of
     283 *       a clock tick.
     284 */
     285void _Thread_queue_Process_timeout(
     286  Thread_Control *the_thread
     287);
    273288
    274289#ifndef __RTEMS_APPLICATION__
  • cpukit/score/inline/rtems/score/threadq.inl

    r84ec364 rc57f26bd  
    2727 */
    2828
    29 /**
    30  *
    31  * @brief Process Thread Queue Timeout
    32  *
    33  * This is a shared helper routine which makes it easier to have multiple
    34  * object class specific timeout routines.
    35  *
    36  * @param[in] the_thread is the thread to extract
    37  *
    38  * @note Assume Dispatching is disabled.
    39  */
    40 static inline void _Thread_queue_Process_timeout(
    41   Thread_Control *the_thread
    42 )
    43 {
    44   Thread_queue_Control *the_thread_queue = the_thread->Wait.queue;
    45 
    46   /*
    47    *  If the_thread_queue is not synchronized, then it is either
    48    *  "nothing happened", "timeout", or "satisfied".   If the_thread
    49    *  is the executing thread, then it is in the process of blocking
    50    *  and it is the thread which is responsible for the synchronization
    51    *  process.
    52    *
    53    *  If it is not satisfied, then it is "nothing happened" and
    54    *  this is the "timeout" transition.  After a request is satisfied,
    55    *  a timeout is not allowed to occur.
    56    */
    57 
    58   if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED &&
    59        _Thread_Is_executing( the_thread ) ) {
    60     if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
    61       the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
    62       the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
    63     }
    64   } else {
    65     the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
    66     _Thread_queue_Extract( the_thread->Wait.queue, the_thread );
    67   }
    68 }
    69 
    7029/**@}*/
    7130
Note: See TracChangeset for help on using the changeset viewer.