
5 Feb
2007
5 Feb
'07
9:25 p.m.
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. 2) It is not safe to use a state_machine during the dynamic initialization phase. In Christ, Steven Watanabe