summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/ratemoncreate.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2005-01-20 18:22:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2005-01-20 18:22:28 +0000
commitf3b7be3bf25a17d86bf1475a9a4145e113065854 (patch)
treeefa0304e36abf126cdf7b7082a3f00bdacd50603 /cpukit/rtems/src/ratemoncreate.c
parent2005-01-20 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-f3b7be3bf25a17d86bf1475a9a4145e113065854.tar.bz2
2005-01-20 Joel Sherrill <joel@OARcorp.com>
PR 745/rtems * rtems/src/ratemoncreate.c, rtems/src/timercreate.c: Make sure internal timer structures are initialized so object control reuse is safe.
Diffstat (limited to 'cpukit/rtems/src/ratemoncreate.c')
-rw-r--r--cpukit/rtems/src/ratemoncreate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/rtems/src/ratemoncreate.c b/cpukit/rtems/src/ratemoncreate.c
index 98e3c32fdc..5585a8ea36 100644
--- a/cpukit/rtems/src/ratemoncreate.c
+++ b/cpukit/rtems/src/ratemoncreate.c
@@ -66,6 +66,8 @@ rtems_status_code rtems_rate_monotonic_create(
the_period->owner = _Thread_Executing;
the_period->state = RATE_MONOTONIC_INACTIVE;
+ _Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL );
+
_Objects_Open(
&_Rate_monotonic_Information,
&the_period->Object,