Boost logo

Boost :

From: Andreas Huber (ahd6974-spamgroupstrap_at_[hidden])
Date: 2007-02-05 16:42:20


Steven Watanabe wrote:
> AMDG
>
> Andreas Huber <ahd6974-spamgroupstrap <at> yahoo.com> writes:
>
>>
>> I guess so if you want to make it easy for the users. Another option
>> would be to require them to call a static initialize function from
>> main() before they start any additional threads.
>>
>
> That is not a good idea in this case.
> 1) Each instantiation of the template would need it's own initialize
> function.

Right.

2) It is not safe to use a state_machine during the dynamic
> initialization phase.

Correct, but at least some users might be willing to pay that price in
return for a really lightweight and fast lib.

-- 
Andreas Huber
When replying by private email, please remove the words spam and trap
from the address shown in the header. 

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