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



Iain wrote:
create a graph
enumerate the threads in the process
pause the graph (which creates all the stream threads)
enumerate all the threads in the graph
subract the orginal list and uprate the remaining thread priorities

That would work i guess, but its a bit of a hack. The problem is that
the program in question is a HTPC application, so the recorder part of
the program might decide to start a recording graph between the two
enumerations, or an unrelated thread might start(unlikely to occur just
at that point but may happen), which might cause you to change priority
of some threads belonging to another part of the program.

In order for it to work always, you need some means of preventing other
new threads being created by threads other than the current when you
enumerate and pause. I guess a hack would be to raise the current
thread priority temporarily to realtime priority or one could introduce
some kind of locking mechanism but the latter would require excessive
changes throughout the program.

.



Relevant Pages

  • Build BDA Graph - Enum tuners
    ... Then I create the reciever component by enumerate ... create a graph with the Technotrend device the tuner device is ok but when I ... Am I doing this the wrong way or is there a bug in some of the filters? ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Graph spy
    ... you can enumerate all the filters in the graph ... for each pin, identify the direction and connected to pin ... Which provides you with the nodes of a directed graph that you can do what ...
    (microsoft.public.win32.programmer.directx.video)
  • find all directed paths between a source and destination
    ... I have a graph of a ... I'm trying to enumerate through all directed paths ... shouldn't be an infinite number of solutions to this problem because ...
    (comp.theory)
  • Re: Setting (thread) priority of DirectShow Graphs/Filters ?
    ... to see what was created by the streaming thread, etc, until all threads ... Enumerate the threads in the app. ... Build and start the graph. ... Enumerate the threads in the app again and the new threads are likely ...
    (microsoft.public.win32.programmer.directx.video)