Hi All,
If I queue a workitem in InstanceSetup and before the workitem get chance to execute if InstanceTeardownComplete occur then what happens with workitem?
Does it executes or removed from queue as device object is destroyed?
Because in InstanceSetup I have queued a workitem in which I signal a event and I am waiting on that event in InstanceTeardownComplete. But some times I am not able to unload the driver. I suspect that the event is not set as workitem does not get execute and so InstanceTeardownComplete gets blocked.
Thanks & Regards,
Amit.
My understanding is that these things take a reference count on the instance
object. So, yes, the instance teardown start will be called; but the
teardowncomplete wont be called until you delete the workitem which will in
turn dereference the instance object.
Regards,
Ayush Gupta
Software Consultant & Owner,
AI Consulting
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@yahoo.com
Sent: Tuesday, March 22, 2011 3:47 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Problem with Workitem
Hi All,
If I queue a workitem in InstanceSetup and before the workitem get chance to
execute if InstanceTeardownComplete occur then what happens with workitem?
Does it executes or removed from queue as device object is destroyed?
Because in InstanceSetup I have queued a workitem in which I signal a event
and I am waiting on that event in InstanceTeardownComplete. But some times I
am not able to unload the driver. I suspect that the event is not set as
workitem does not get execute and so InstanceTeardownComplete gets blocked.
Thanks & Regards,
Amit.
NTFSD is sponsored by OSR
For our schedule of debugging and file system 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
Hi Ayush,
Thanks for prompt reply. But I haven’t handeled Ayush instance teardown start.