# HG changeset patch # User greg # Date 1211622693 -7200 # Node ID 9abf2ac9cb8e06977800ced0feaf7d19c3dfdddb # Parent 43614ea83d2a78abc9601361dfdea4da03c689d8 add TimerInit() and TimerCleanup() in cf_runtime for matching with Timer_unix diff -r 43614ea83d2a -r 9abf2ac9cb8e plugins/canfestival/cf_runtime.c --- a/plugins/canfestival/cf_runtime.c Fri May 23 19:33:17 2008 +0200 +++ b/plugins/canfestival/cf_runtime.c Sat May 24 11:51:33 2008 +0200 @@ -57,6 +57,9 @@ setState(&nodename##_Data, Stopped);\ LeaveMutex();\ canClose(&nodename##_Data);\ + #if !defined(WIN32) || defined(__CYGWIN__)\ + TimerCleanup();\ + #endif\ } void __cleanup_%(locstr)s() @@ -70,7 +73,10 @@ } #define NODE_OPEN(nodename)\ - nodename##_Data.preOperational = nodename##_preOperational;\ + #if !defined(WIN32) || defined(__CYGWIN__)\ + TimerInit();\ + #endif\ + nodename##_Data.preOperational = nodename##_preOperational;\ if(!canOpen(&nodename##Board,&nodename##_Data)){\ printf("Cannot open " #nodename " Board (%%s,%%s)\n",nodename##Board.busname, nodename##Board.baudrate);\ return -1;\