Boost logo

Boost :

From: John Torjo (john.groups_at_[hidden])
Date: 2007-10-30 17:28:19


Hi JD,

Note that I have the gather concept (see "Workflow" in the online docs).
The gather always happens with a temporary object. Once all data is
gathered, it calls the writer's operator()(msg_type& msg).
You can choose to make the writer thread safe if you wish.

Best,
John
> Hi John,
>
> Nice to have you back on track.
> I was looking at your library, because I am developing one myself and
> I ran in a tricky problem and was wondering how did you solve it.
>
> Let's say you have this code:
>
> [...]
> int foo()
> {
> LDBG_ << "foo called";
> return 42;
> }
>
> [...]
> int main(int argc, char **argv)
> {
> [...]
> LDBG_ << "foo returned: " << foo();
> [...]
> }
>
>
> How does it behave? Are you using a stack? And how do you handle
> multi-threading in such case??
>
> You'll tell me: "look at my code", and you would be right :) But just
> wondering if you though specifically to this pb and if you tackled it so
> maybe I can get some inspiration from you ;p
>
> Thanks
>
> JD
>
>
>

-- 
http://John.Torjo.com -- C++ expert
... call me only if you want things done right

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