[rtems-schedsim commit] wrap_thread_dispatch.c: Add missed file

Joel Sherrill joel at rtems.org
Wed Apr 30 19:45:32 UTC 2014


Module:    rtems-schedsim
Branch:    master
Commit:    d13fa726f8dbae9503a8177fbb44d0a434f9b7bf
Changeset: http://git.rtems.org/rtems-schedsim/commit/?id=d13fa726f8dbae9503a8177fbb44d0a434f9b7bf

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed Apr 30 14:53:29 2014 -0500

wrap_thread_dispatch.c: Add missed file

---

 .../shell/schedsim_priority/wrap_thread_dispatch.c |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/schedsim/shell/schedsim_priority/wrap_thread_dispatch.c b/schedsim/shell/schedsim_priority/wrap_thread_dispatch.c
index f9f29ee..a66d37d 100644
--- a/schedsim/shell/schedsim_priority/wrap_thread_dispatch.c
+++ b/schedsim/shell/schedsim_priority/wrap_thread_dispatch.c
@@ -1,7 +1,11 @@
-/*
- *  Thread Dispatch Wrapper Implmentation
+/**
+ *  @file
  *
- *  COPYRIGHT (c) 1989-2013.
+ *  @brief Thread Dispatch Wrapper Implmentation
+ */
+
+/*
+ *  COPYRIGHT (c) 1989-2014.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -34,6 +38,9 @@ void check_heir_and_executing(void)
 
 void __wrap__Thread_Dispatch(void)
 {
+  if ( schedsim_is_dispatch_allowed() == false )
+    return;
+
   check_heir_and_executing();
     __real__Thread_Dispatch();
   check_heir_and_executing();




More information about the vc mailing list