mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
Added support for new synchronization algorithm. Specifically, the routine
_Thread_queue_Enter_critical_section was added.
This commit is contained in:
@@ -56,5 +56,19 @@ STATIC INLINE unsigned32 _Thread_queue_Get_number_waiting (
|
|||||||
return ( the_thread_queue->count );
|
return ( the_thread_queue->count );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*PAGE
|
||||||
|
*
|
||||||
|
* _Thread_queue_Enter_critical_section
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
STATIC INLINE void _Thread_queue_Enter_critical_section (
|
||||||
|
Thread_queue_Control *the_thread_queue
|
||||||
|
)
|
||||||
|
{
|
||||||
|
the_thread_queue->sync = TRUE;
|
||||||
|
the_thread_queue->sync_state = THREAD_QUEUE_NOTHING_HAPPENED;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* end of include file */
|
/* end of include file */
|
||||||
|
|||||||
@@ -56,5 +56,19 @@ STATIC INLINE unsigned32 _Thread_queue_Get_number_waiting (
|
|||||||
return ( the_thread_queue->count );
|
return ( the_thread_queue->count );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*PAGE
|
||||||
|
*
|
||||||
|
* _Thread_queue_Enter_critical_section
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
STATIC INLINE void _Thread_queue_Enter_critical_section (
|
||||||
|
Thread_queue_Control *the_thread_queue
|
||||||
|
)
|
||||||
|
{
|
||||||
|
the_thread_queue->sync = TRUE;
|
||||||
|
the_thread_queue->sync_state = THREAD_QUEUE_NOTHING_HAPPENED;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* end of include file */
|
/* end of include file */
|
||||||
|
|||||||
@@ -56,5 +56,19 @@ STATIC INLINE unsigned32 _Thread_queue_Get_number_waiting (
|
|||||||
return ( the_thread_queue->count );
|
return ( the_thread_queue->count );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*PAGE
|
||||||
|
*
|
||||||
|
* _Thread_queue_Enter_critical_section
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
STATIC INLINE void _Thread_queue_Enter_critical_section (
|
||||||
|
Thread_queue_Control *the_thread_queue
|
||||||
|
)
|
||||||
|
{
|
||||||
|
the_thread_queue->sync = TRUE;
|
||||||
|
the_thread_queue->sync_state = THREAD_QUEUE_NOTHING_HAPPENED;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/* end of include file */
|
/* end of include file */
|
||||||
|
|||||||
Reference in New Issue
Block a user