|
From: <pa...@us...> - 2003-08-11 19:32:26
|
Update of /cvsroot/emc/rtapi/src/rtapi
In directory sc8-pr-cvs1:/tmp/cvs-serv4979
Modified Files:
rtai_rtapi.c rtapi.h
Log Message:
A few comments about rtapi_task_start when period is zero
Index: rtai_rtapi.c
===================================================================
RCS file: /cvsroot/emc/rtapi/src/rtapi/rtai_rtapi.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** rtai_rtapi.c 11 Aug 2003 04:58:39 -0000 1.19
--- rtai_rtapi.c 11 Aug 2003 19:17:06 -0000 1.20
***************
*** 533,537 ****
}
} else {
! /* start task in free-running mode */
retval = rt_task_resume(&(task->ostask));
if (retval != 0) {
--- 533,538 ----
}
} else {
! /* If we got this far, a task has been paused and is awaiting
! a wakeup call to resume */
retval = rt_task_resume(&(task->ostask));
if (retval != 0) {
Index: rtapi.h
===================================================================
RCS file: /cvsroot/emc/rtapi/src/rtapi/rtapi.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** rtapi.h 11 Aug 2003 04:58:39 -0000 1.17
--- rtapi.h 11 Aug 2003 19:17:06 -0000 1.18
***************
*** 199,205 ****
* 'period_nsec' is the task period in nanoseconds, which will be *
* rounded to the nearest multiple of the global clock period. If *
! * 'period_nsec' is zero, the task is non-periodic. It will be started *
! * immediately (does not use 'when'), and run until it returns, pauses, *
! * or makes a blocking call. *
* 'when' is the desired start time for the task. If RTAPI_NOW, the *
* task will start immediately. Otherwise, the task will be scheduled *
--- 199,205 ----
* 'period_nsec' is the task period in nanoseconds, which will be *
* rounded to the nearest multiple of the global clock period. If *
! * 'period_nsec' is zero, the task is assumed to be in a paused state *
! * and will be resumed immediately. rtapi_task_resume() would be the *
! * prefered method of restarting a paused task. *
* 'when' is the desired start time for the task. If RTAPI_NOW, the *
* task will start immediately. Otherwise, the task will be scheduled *
|