diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-08-08 08:44:51 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-08-08 09:34:29 +0200 |
commit | aaaf9610db1a3cb0b01b86dc1a4f1e6b12f43126 (patch) | |
tree | c9ba25cf3c9eda0866a762c1f408783e3528fd06 /cpukit/score/src/watchdoginsert.c | |
parent | posix: Fix for RTEMS_DEBUG (diff) | |
download | rtems-aaaf9610db1a3cb0b01b86dc1a4f1e6b12f43126.tar.bz2 |
score: Add debug support to red-black trees
This helps to detect double insert and extract errors.
Diffstat (limited to 'cpukit/score/src/watchdoginsert.c')
-rw-r--r-- | cpukit/score/src/watchdoginsert.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/score/src/watchdoginsert.c b/cpukit/score/src/watchdoginsert.c index 22fc7a5f76..b9f5eb88fb 100644 --- a/cpukit/score/src/watchdoginsert.c +++ b/cpukit/score/src/watchdoginsert.c @@ -60,6 +60,7 @@ void _Watchdog_Insert( } header->first = new_first; + _RBTree_Initialize_node( &the_watchdog->Node.RBTree ); _RBTree_Add_child( &the_watchdog->Node.RBTree, parent, link ); _RBTree_Insert_color( &header->Watchdogs, &the_watchdog->Node.RBTree ); } |