|
-
August 25th, 2004, 09:37 AM
#1
Timer
Hello,
I have an EXE COM object that has a worker thread. This object must schedule some actions and for that it uses another thread and a WaitableTimer object. The problem I am facing is the following:
1º) When the worker thread is not created, the "timer" thread works just fine, with the intervals being respected correctly (with acceptable error margins);
2º) When the worker thread is created and is performing its job, the "timer" thread does not respect small intervals anymore (values below 250ms).
I have tried to use SetThreadPriority() and SetPriorityClass() APIs (TIME CRITICAL and REALTIME), but the results were exactly the same... My opinion is: scheduling of threads inside the process is interfering in my "timer" thread.
Does anyone know how to solve this? I can use other ideas for timing issues, but they must be precise ones.
Thanks in advance,
Wagner
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
|