diff options
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/sapi/inline/rtems/chain.inl | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 919e543028..c982bac47e 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2010-08-09 Sebastian Huber <sebastian.huber@embedded-brains.de> + + * sapi/inline/rtems/chain.inl: Added + rtems_chain_extract_unprotected(). + 2010-08-09 Ralf Corsépius <ralf.corsepius@rtems.org> * posix/include/aio.h, posix/src/aio_return.c: diff --git a/cpukit/sapi/inline/rtems/chain.inl b/cpukit/sapi/inline/rtems/chain.inl index ead6db5776..58b6770525 100644 --- a/cpukit/sapi/inline/rtems/chain.inl +++ b/cpukit/sapi/inline/rtems/chain.inl @@ -366,6 +366,21 @@ RTEMS_INLINE_ROUTINE void rtems_chain_extract( } /** + * @brief Extract the specified node from a chain (unprotected). + * + * This routine extracts @a the_node from the chain on which it resides. + * + * @note It does NOT disable interrupts to ensure the atomicity of the + * append operation. + */ +RTEMS_INLINE_ROUTINE void rtems_chain_extract_unprotected( + rtems_chain_node *the_node +) +{ + _Chain_Extract_unprotected( the_node ); +} + +/** * @brief Obtain the first node on a chain * * This function removes the first node from @a the_chain and returns |