[PATCH 06/12] score: Add _Priority_bit_map_Is_empty()
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Aug 13 13:42:51 UTC 2013
---
.../score/include/rtems/score/prioritybitmapimpl.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/cpukit/score/include/rtems/score/prioritybitmapimpl.h b/cpukit/score/include/rtems/score/prioritybitmapimpl.h
index 27be57e..717af90 100644
--- a/cpukit/score/include/rtems/score/prioritybitmapimpl.h
+++ b/cpukit/score/include/rtems/score/prioritybitmapimpl.h
@@ -242,6 +242,11 @@ RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
_Priority_Bits_index( minor );
}
+RTEMS_INLINE_ROUTINE bool _Priority_bit_map_Is_empty( void )
+{
+ return _Priority_Major_bit_map == 0;
+}
+
/**
* This routine initializes the_priority_map so that it
* contains the information necessary to manage a thread
--
1.7.7
More information about the devel
mailing list