Added support for new synchronization algorithm. Specifically, the routine

_Thread_queue_Enter_critical_section was added.
This commit is contained in:
Joel Sherrill
1995-12-01 21:07:48 +00:00
parent 4250c8b13d
commit ed329077c3
3 changed files with 42 additions and 0 deletions

View File

@@ -56,5 +56,19 @@ STATIC INLINE unsigned32 _Thread_queue_Get_number_waiting (
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
/* end of include file */

View File

@@ -56,5 +56,19 @@ STATIC INLINE unsigned32 _Thread_queue_Get_number_waiting (
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
/* end of include file */

View File

@@ -56,5 +56,19 @@ STATIC INLINE unsigned32 _Thread_queue_Get_number_waiting (
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
/* end of include file */