Boost logo

Boost Users :

From: Robert Kindred (RKindred_at_[hidden])
Date: 2006-09-18 10:11:54


"Sohail Somani" <s.somani_at_[hidden]> wrote in message
news:1C1EBEF8DBACDC439D038EA051674EC7406EA9_at_xbox.financialcad.com...
>> -----Original Message-----
>> From: boost-users-bounces_at_[hidden]
>> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
>> Robert Kindred
>> I can think of one example for not fully constructing objects:
> [snip]
>> The problem is in starting up. If each one of these threads
>> knows about
>> each other via some method (pointer, or reference), then when
>> a thread
>> starts up its own business, whatever that is, then most
>> likely it will start
>> generating data and sending messages. When it tries to send
>> a message to a
>> thread that does not yet exist, BOOM!!! (yes, I have
>> experienced this boom).
>
> Can you not create them all, have them wait on some condition variable
> and signal when you're ready to go?

Yes, I suppose that works, with some extra effort. So does this mean that a
monolithic constructor is very important to you?

Robert Kindred


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net