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:49:38 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-19 08:34:26 +0100
commitff25926701a7c4e8cf0858bc8f41133e7d7dd45a (patch)
treec3ca823580022af719f01fc554407cfbda9dd3f2 /cpukit/score/include/rtems/score/assert.h
parentposix: Use interal mutex for once implementation (diff)
downloadrtems-ff25926701a7c4e8cf0858bc8f41133e7d7dd45a.tar.bz2
score: Delete _Assert_Thread_dispatching_repressed
Add _Debug_Is_thread_dispatching_allowed(). This makes it possible to assert the opposite. Use _ISR_Disable_without_giant()/_ISR_Enable_without_giant() to avoid misleading secondary assertion failures.
Diffstat (limited to 'cpukit/score/include/rtems/score/assert.h')
-rw-r--r--cpukit/score/include/rtems/score/assert.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/cpukit/score/include/rtems/score/assert.h b/cpukit/score/include/rtems/score/assert.h
index 4856eae8b4..0248b3c4e5 100644
--- a/cpukit/score/include/rtems/score/assert.h
+++ b/cpukit/score/include/rtems/score/assert.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013 embedded brains GmbH. All rights reserved.
+ * Copyright (c) 2013-2014 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Dornierstr. 4
@@ -39,15 +39,13 @@ extern "C" {
#endif
/**
- * @brief Asserts that thread dispatching is repressed.
+ * @brief Returns true if thread dispatching is allowed.
*
* Thread dispatching can be repressed via _Thread_Disable_dispatch() or
* _ISR_Disable().
*/
#if defined( RTEMS_DEBUG )
- void _Assert_Thread_dispatching_repressed( void );
-#else
- #define _Assert_Thread_dispatching_repressed() ( ( void ) 0 )
+ bool _Debug_Is_thread_dispatching_allowed( void );
#endif
/**