[rtems commit] score: Add _SMP_Assert()
Sebastian Huber
sebh at rtems.org
Wed May 20 07:12:03 UTC 2015
Module: rtems
Branch: master
Commit: cf255ff0b2e422a8b6b659240efd0856411f8580
Changeset: http://git.rtems.org/rtems/commit/?id=cf255ff0b2e422a8b6b659240efd0856411f8580
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Apr 24 11:47:35 2015 +0200
score: Add _SMP_Assert()
---
cpukit/score/include/rtems/score/assert.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/cpukit/score/include/rtems/score/assert.h b/cpukit/score/include/rtems/score/assert.h
index 43ec2d0..6308378 100644
--- a/cpukit/score/include/rtems/score/assert.h
+++ b/cpukit/score/include/rtems/score/assert.h
@@ -83,6 +83,15 @@ extern "C" {
#endif
/**
+ * @brief Like _Assert(), but only armed if RTEMS_SMP is defined.
+ */
+#if defined( RTEMS_SMP )
+ #define _SMP_Assert( _e ) _Assert( _e )
+#else
+ #define _SMP_Assert( _e ) ( ( void ) 0 )
+#endif
+
+/**
* @brief Returns true if thread dispatching is allowed.
*
* Thread dispatching can be repressed via _Thread_Disable_dispatch() or
More information about the vc
mailing list