
Super! How about the adaptable closures? I have to warn you though that this may be a temporary bridge for Spirit 1.8 to Spirit 2.0. Adaptable closures support may be retired in place of true local variables (already supported in Phoenix 2); unless a solution can be found to get rid of the nasty TLS ugliness in multithreaded code.
Regards, -- Joel de Guzman [Brian Braatz Writes:] If you would permit indulging my curiosity: :)
I understand TLS. But I don't understand your problem? Is the problem because you need to use a global or static and when do you so, you are not thread safe (i.e. the classic getlasterror() problem with threads)?

Brian Braatz wrote:
Super! How about the adaptable closures? I have to warn you though that this may be a temporary bridge for Spirit 1.8 to Spirit 2.0. Adaptable closures support may be retired in place of true local variables (already supported in Phoenix 2); unless a solution can be found to get rid of the nasty TLS ugliness in multithreaded code.
Regards, -- Joel de Guzman
[Brian Braatz Writes:] If you would permit indulging my curiosity: :)
I understand TLS. But I don't understand your problem?
Is the problem because you need to use a global or static and when do you so, you are not thread safe (i.e. the classic getlasterror() problem with threads)?
Yes. It needs a static. Cheers, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
participants (2)
-
Brian Braatz
-
Joel de Guzman