|
Fraser Moore
|
TimerTimeout() not getting timeout
|
|
Fraser Moore
08/09/2012 4:27 AM
post94708
|
TimerTimeout() not getting timeout
Hi,
I'm trying to use TimerTimeout() to check for timeouts before calling
devctl(), i.e.
timeout = 1000000000;
ret = TimerTimeout( CLOCK_REALTIME,
_NTO_TIMEOUT_SEND |
_NTO_TIMEOUT_REPLY,
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.
Fraser
--
Fraser Moore
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
|
|
|
|
|