
9 Jan
2005
9 Jan
'05
6:24 p.m.
hi christopher diggins <cdiggins@videotron.ca> writes:
7) allow threading of functions
Do you mean this: support filters which think they are processing an entire stream at once, but really their threads are waiting on some syncronization object whenever there is no more input available, or output buffers are full?
What I want is to allow two proc_as_filter objects to be executed simultaneously, so that this code:
proc_as_filter(Proc1) | proc_as_filter(Proc2)
Runs optimally on a multi-processor machine. I don't know how hard this is, I am quite inexperienced in multithreaded code.
Proc1 and Proc2 will be using the global cin and cout objects simultaneously if the are run in parallel. mvrgr frank