summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/assert.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-18 11:56:42 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-19 08:34:27 +0100
commita3dd225b88eaadc2832cdb65ee9287f8aceea095 (patch)
treedbe6b3cd250722d6f6ed9259cf95f1190e5c3b38 /cpukit/score/include/rtems/score/assert.h
parentscore: Delete _Assert_Thread_dispatching_repressed (diff)
downloadrtems-a3dd225b88eaadc2832cdb65ee9287f8aceea095.tar.bz2
score: Delete _Assert_Owner_of_giant()
Add _Debug_Is_owner_of_giant(). This makes it possible to assert the opposite.
Diffstat (limited to 'cpukit/score/include/rtems/score/assert.h')
-rw-r--r--cpukit/score/include/rtems/score/assert.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/cpukit/score/include/rtems/score/assert.h b/cpukit/score/include/rtems/score/assert.h
index 0248b3c4e5..707222b6d3 100644
--- a/cpukit/score/include/rtems/score/assert.h
+++ b/cpukit/score/include/rtems/score/assert.h
@@ -49,12 +49,14 @@ extern "C" {
#endif
/**
- * @brief Asserts that current thread of execution owns the giant lock.
+ * @brief Returns true if the current thread of execution owns the giant lock.
*/
-#if defined( RTEMS_DEBUG ) && defined( RTEMS_SMP )
- void _Assert_Owner_of_giant( void );
-#else
- #define _Assert_Owner_of_giant() ( ( void ) 0 )
+#if defined( RTEMS_DEBUG )
+ #if defined( RTEMS_SMP )
+ bool _Debug_Is_owner_of_giant( void );
+ #else
+ #define _Debug_Is_owner_of_giant() (true)
+ #endif
#endif
#ifdef __cplusplus