Boost logo

Boost :

From: Steven Watanabe (steven_at_[hidden])
Date: 2007-02-05 16:25:35


Andreas Huber <ahd6974-spamgroupstrap <at>> 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.
2) It is not safe to use a state_machine during the dynamic initialization phase.

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at