forked from Imagelibrary/rtems
2009-12-10 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1482 * posix/src/timersettime.c: Exit dispatching critical section.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-12-10 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
PR 1482
|
||||||
|
* posix/src/timersettime.c: Exit dispatching critical section.
|
||||||
|
|
||||||
2009-12-10 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2009-12-10 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
PR 1480/cpukit
|
PR 1480/cpukit
|
||||||
|
|||||||
@@ -102,11 +102,15 @@ int timer_settime(
|
|||||||
_POSIX_Timer_TSR,
|
_POSIX_Timer_TSR,
|
||||||
ptimer
|
ptimer
|
||||||
);
|
);
|
||||||
if ( !activated )
|
if ( !activated ) {
|
||||||
|
_Thread_Enable_dispatch();
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* The timer has been started and is running */
|
/*
|
||||||
/* return the old ones in "ovalue" */
|
* The timer has been started and is running. So we return the
|
||||||
|
* old ones in "ovalue"
|
||||||
|
*/
|
||||||
if ( ovalue )
|
if ( ovalue )
|
||||||
*ovalue = ptimer->timer_data;
|
*ovalue = ptimer->timer_data;
|
||||||
ptimer->timer_data = normalize;
|
ptimer->timer_data = normalize;
|
||||||
|
|||||||
Reference in New Issue
Block a user