summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-12-01 21:07:48 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-12-01 21:07:48 +0000
commited329077c332e85b62b45c6bc382092f56395c1f (patch)
treededa8f07fdad6a904c873756ee0a00cb5a728f32
parentAdded support for new synchronization algorithm. (diff)
downloadrtems-ed329077c332e85b62b45c6bc382092f56395c1f.tar.bz2
Added support for new synchronization algorithm. Specifically, the routine
_Thread_queue_Enter_critical_section was added.
-rw-r--r--c/src/exec/score/inline/rtems/score/tqdata.inl14
-rw-r--r--c/src/exec/score/inline/tqdata.inl14
-rw-r--r--cpukit/score/inline/rtems/score/tqdata.inl14
3 files changed, 42 insertions, 0 deletions
diff --git a/c/src/exec/score/inline/rtems/score/tqdata.inl b/c/src/exec/score/inline/rtems/score/tqdata.inl
index 89b0241a3e..3cf9c51ef6 100644
--- a/c/src/exec/score/inline/rtems/score/tqdata.inl
+++ b/c/src/exec/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 */
diff --git a/c/src/exec/score/inline/tqdata.inl b/c/src/exec/score/inline/tqdata.inl
index 89b0241a3e..3cf9c51ef6 100644
--- a/c/src/exec/score/inline/tqdata.inl
+++ b/c/src/exec/score/inline/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 */
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 */