forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
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.
|
||||
|
||||
2005-01-20 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
PR 740/rtems
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -64,6 +64,7 @@ rtems_status_code rtems_timer_create(
|
||||
}
|
||||
|
||||
the_timer->the_class = TIMER_DORMANT;
|
||||
_Watchdog_Initialize( &the_timer->Ticker, NULL, 0, NULL );
|
||||
|
||||
_Objects_Open(
|
||||
&_Timer_Information,
|
||||
|
||||
@@ -95,7 +95,7 @@ CORE_SEMAPHORE_C_FILES = src/coresem.c src/coresemflush.c src/coresemseize.c \
|
||||
|
||||
HEAP_C_FILES = src/heap.c src/heapallocate.c src/heapextend.c src/heapfree.c \
|
||||
src/heapsizeofuserarea.c src/heapwalk.c src/heapgetinfo.c \
|
||||
src/heapgetfreeinfo.c
|
||||
src/heapgetfreeinfo.c src/heapallocatealigned.c
|
||||
|
||||
OBJECT_C_FILES = src/object.c src/objectallocate.c \
|
||||
src/objectallocatebyindex.c src/objectclearname.c \
|
||||
|
||||
Reference in New Issue
Block a user