|
From: <jmk...@us...> - 2003-08-04 06:00:27
|
Update of /cvsroot/emc/rtapi/examples/shmem
In directory sc8-pr-cvs1:/tmp/cvs-serv30223/examples/shmem
Modified Files:
shmemtask.c
Log Message:
RTLinux version now uses new API, everything builds, only timertask is tested
Index: shmemtask.c
===================================================================
RCS file: /cvsroot/emc/rtapi/examples/shmem/shmemtask.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** shmemtask.c 2 Aug 2003 19:37:18 -0000 1.3
--- shmemtask.c 4 Aug 2003 06:00:25 -0000 1.4
***************
*** 58,62 ****
--- 58,65 ----
/* set the base timer period */
retval = rtapi_clock_set_period(SHMEM_PERIOD_NSEC);
+ if ( retval != RTAPI_SUCCESS ) {
rtapi_print( "shmemtask init: rtapi_clock_set_period returned %d\n", retval );
+ return -1;
+ }
/* set the task priority to lowest, since we only have one task */
|