WdfTimerStart

I have a strange question on WdfTimerStart, if the DueTime is zero will it
tigger immediately? I acquired some code with such a call inside a
WdfSpinLock and was wondering if on the release of the lock the timer
callback would trigger.


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4580 (20091106) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

DueTime is passed directly to the underlying timer APIs, so you get the same behavior as WDM. Zero is treated as an absolute time and IIRC it will be triggered immediately. If this is an MP system, the timer callback can run concurrently while the spinlock is held, so I am not sure what the spinlock has to do with the timer firing or not.

Thx
d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Friday, November 06, 2009 12:54 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] WdfTimerStart

I have a strange question on WdfTimerStart, if the DueTime is zero will it
tigger immediately? I acquired some code with such a call inside a
WdfSpinLock and was wondering if on the release of the lock the timer callback would trigger.


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4580 (20091106) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer