08/09/2012 4:27 AM
TimerTimeout() not getting timeout
I'm trying to use TimerTimeout() to check for timeouts before calling
timeout = 1000000000;
ret = TimerTimeout( CLOCK_REALTIME,
NULL, &timeout, NULL);
ret = devctl( fd, dcmd, ipcMsg,
IPC_MESSAGE_SIZE( ipcMsg->dataLength ), NULL);
If I set timeout to 0 then I always get a timeout with devctl()
returning ETIMEDOUT as expected. But if I set it to any other non-zero
value then I never get the timeout event.
I'm building for the x86 platform and running it on a VMWare VM. I'm
not sure if I'm doing something wrong, or there is an issue with the
timeouts on this platform.
Any help much appreciated.
Abelon Systems Ltd
Building 4, Quantum Court, Research Avenue South,
Heriot Watt Research Park, Riccarton, Edinburgh EH14 4AP.
phone: 0131 449 9173 web: www.abelon.com