summaryrefslogtreecommitdiffstats
path: root/cpukit/score/inline/rtems/score/tqdata.inl
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/inline/rtems/score/tqdata.inl')
-rw-r--r--cpukit/score/inline/rtems/score/tqdata.inl14
1 files changed, 14 insertions, 0 deletions
diff --git a/cpukit/score/inline/rtems/score/tqdata.inl b/cpukit/score/inline/rtems/score/tqdata.inl
index 89b0241a3e..3cf9c51ef6 100644
--- a/cpukit/score/inline/rtems/score/tqdata.inl
+++ b/cpukit/score/inline/rtems/score/tqdata.inl
@@ -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 */