[rtems commit] score: Add _Priority_bit_map_Is_empty()

Sebastian Huber sebh at rtems.org
Tue Aug 20 08:14:19 UTC 2013


Module:    rtems
Branch:    master
Commit:    0405082e0f0cac0342be66d39a12377ba3630e3d
Changeset: http://git.rtems.org/rtems/commit/?id=0405082e0f0cac0342be66d39a12377ba3630e3d

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Aug 12 10:22:21 2013 +0200

score: Add _Priority_bit_map_Is_empty()

---

 .../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




More information about the vc mailing list