Timer thread

Hey all,

I would like to have a block of code that checks a data structure and
removes entries that are like 5 secs old or something. I’m thinking that
having a seperate thread waiting on a kernel timer object is the way to do
this, but are there any PNP or Power Management issues I have to deal with
in this approach?

Thanks,
Bryce

Why not just use a KTIMER and prune the list in the timer DPC? That way
you don’t use a thread for such a simple task.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bryce Leung
Sent: Thursday, July 22, 2004 8:25 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Timer thread

Hey all,

I would like to have a block of code that checks a data structure and
removes entries that are like 5 secs old or something. I’m thinking that
having a seperate thread waiting on a kernel timer object is the way to
do
this, but are there any PNP or Power Management issues I have to deal
with
in this approach?

Thanks,
Bryce


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Use Ex/IoQueueWorkItem instead.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Bryce Leung”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Friday, July 23, 2004 7:25 AM
Subject: [ntdev] Timer thread

> Hey all,
>
> I would like to have a block of code that checks a data structure and
> removes entries that are like 5 secs old or something. I’m thinking that
> having a seperate thread waiting on a kernel timer object is the way to do
> this, but are there any PNP or Power Management issues I have to deal with
> in this approach?
>
> Thanks,
> Bryce
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com