Changeset 4250c8b in rtems


Ignore:
Timestamp:
Dec 1, 1995, 9:07:25 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
ed32907
Parents:
a26603d
Message:

Added support for new synchronization algorithm.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/headers/tqdata.h

    ra26603d r4250c8b  
    3737
    3838/*
     39 *  The following enumerated types indicate what happened while the thread
     40 *  queue was in the synchronization window.
     41 */
     42 
     43typedef enum {
     44  THREAD_QUEUE_NOTHING_HAPPENED,
     45  THREAD_QUEUE_TIMEOUT,
     46  THREAD_QUEUE_SATISFIED
     47}  Thread_queue_states;
     48
     49/*
    3950 *  The following record defines the control block used
    4051 *  to manage each thread.
     
    5061  } Queues;
    5162  boolean                  sync;       /* alloc/dealloc critical section */
     63  Thread_queue_states      sync_state; /* what happened while in sync    */
    5264  Thread_queue_Disciplines discipline; /* queue discipline               */
    5365  States_Control           state;      /* state of threads on Thread_q   */
     
    8395);
    8496
     97/*
     98 *  _Thread_queue_Enter_critical_section
     99 *
     100 *  DESCRIPTION:
     101 *
     102 *  This routine is invoked to indicate that the specified thread queue is
     103 *  entering a critical section.
     104 */
     105 
     106STATIC INLINE void _Thread_queue_Enter_critical_section (
     107  Thread_queue_Control *the_thread_queue
     108);
     109
    85110#include <rtems/score/tqdata.inl>
    86111
  • c/src/exec/score/include/rtems/score/tqdata.h

    ra26603d r4250c8b  
    3737
    3838/*
     39 *  The following enumerated types indicate what happened while the thread
     40 *  queue was in the synchronization window.
     41 */
     42 
     43typedef enum {
     44  THREAD_QUEUE_NOTHING_HAPPENED,
     45  THREAD_QUEUE_TIMEOUT,
     46  THREAD_QUEUE_SATISFIED
     47}  Thread_queue_states;
     48
     49/*
    3950 *  The following record defines the control block used
    4051 *  to manage each thread.
     
    5061  } Queues;
    5162  boolean                  sync;       /* alloc/dealloc critical section */
     63  Thread_queue_states      sync_state; /* what happened while in sync    */
    5264  Thread_queue_Disciplines discipline; /* queue discipline               */
    5365  States_Control           state;      /* state of threads on Thread_q   */
     
    8395);
    8496
     97/*
     98 *  _Thread_queue_Enter_critical_section
     99 *
     100 *  DESCRIPTION:
     101 *
     102 *  This routine is invoked to indicate that the specified thread queue is
     103 *  entering a critical section.
     104 */
     105 
     106STATIC INLINE void _Thread_queue_Enter_critical_section (
     107  Thread_queue_Control *the_thread_queue
     108);
     109
    85110#include <rtems/score/tqdata.inl>
    86111
  • cpukit/score/include/rtems/score/tqdata.h

    ra26603d r4250c8b  
    3737
    3838/*
     39 *  The following enumerated types indicate what happened while the thread
     40 *  queue was in the synchronization window.
     41 */
     42 
     43typedef enum {
     44  THREAD_QUEUE_NOTHING_HAPPENED,
     45  THREAD_QUEUE_TIMEOUT,
     46  THREAD_QUEUE_SATISFIED
     47}  Thread_queue_states;
     48
     49/*
    3950 *  The following record defines the control block used
    4051 *  to manage each thread.
     
    5061  } Queues;
    5162  boolean                  sync;       /* alloc/dealloc critical section */
     63  Thread_queue_states      sync_state; /* what happened while in sync    */
    5264  Thread_queue_Disciplines discipline; /* queue discipline               */
    5365  States_Control           state;      /* state of threads on Thread_q   */
     
    8395);
    8496
     97/*
     98 *  _Thread_queue_Enter_critical_section
     99 *
     100 *  DESCRIPTION:
     101 *
     102 *  This routine is invoked to indicate that the specified thread queue is
     103 *  entering a critical section.
     104 */
     105 
     106STATIC INLINE void _Thread_queue_Enter_critical_section (
     107  Thread_queue_Control *the_thread_queue
     108);
     109
    85110#include <rtems/score/tqdata.inl>
    86111
Note: See TracChangeset for help on using the changeset viewer.