Re: Setting (thread) priority of DirectShow Graphs/Filters ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



ziphnor@xxxxxxxxx wrote:

Im not completely up to date on multi-threading, but isnt
there some way to identify which thread started a given
thread(in either C++ or C#)?

I can't think of any function to get a thread's parent
thread and I think a thread does not keep a reference to its
parent so that threads in a process do not for a tree like
processes in the system.

However, you can hook CreateThread() and gather this
information yourself right after the thread is created, or
just set its priority, in which case you would do better to
also hook SetThreadPriority() to prevent some code outside
your control to change the priority at a later time.


--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// a dot angeli at psynet dot net


.



Relevant Pages