Ignore:
Timestamp:
Jul 21, 2016, 8:15:02 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
64ed0bb3
Parents:
3cdda03
git-author:
Sebastian Huber <sebastian.huber@…> (07/21/16 08:15:02)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/22/16 07:13:07)
Message:

score: Add debug support to chains

This helps to detect

  • double insert, append, prepend errors, and
  • get from empty chain errors.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/rtems/chain.h

    r3cdda03 r059529e  
    189189
    190190/**
     191 * @brief Initializes a chain node.
     192 *
     193 * In debug configurations, the node is set off chain.  In all other
     194 * configurations, this function does nothing.
     195 *
     196 * @param[in] the_node The chain node to initialize.
     197 */
     198RTEMS_INLINE_ROUTINE void rtems_chain_initialize_node(
     199  rtems_chain_node *node
     200)
     201{
     202  _Chain_Initialize_node( node );
     203}
     204
     205/**
    191206 * @brief Is the node off chain.
    192207 *
Note: See TracChangeset for help on using the changeset viewer.