Boost logo

Boost :

From: Frank van Dijk (f.v.dijk_at_[hidden])
Date: 2005-01-09 13:24:35


hi

christopher diggins <cdiggins_at_[hidden]> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk