|
-
Aug 16th, 2006, 12:37 PM
#1
Thread Starter
Member
[RESOLVED] Several timers... how to control one of them?
Hello to all,
in my project i have multi timers ( System.Threading.timer ),
eath timer is associated to a jobId.
I need to stop one of the timers, i know the jobID.
The problem. How do i know the timer associated to the job X.
I keep the jobId and the timerId ( i think that timer.GetHashCode gives the id of the timer ) in a hashtable.
Thanks for your time and help ( i hope so ), sorry about my english...
-
Aug 16th, 2006, 06:19 PM
#2
Re: Several timers... how to control one of them?
Why store the ID of the Timers in the Hashtable when you can just as easily store the Timers themselves? Then indexing the Hashtable by job ID will return a direct reference to the desired Timer.
-
Aug 17th, 2006, 02:58 AM
#3
Thread Starter
Member
Re: Several timers... how to control one of them?
Last night when i was in sleeping i through the same .
Thanks for the reply .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|