diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-08-28 02:50:02 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-08-28 02:50:02 +0000 |
commit | 29edc4e6fb2c8fb3a93aac36d9666efd21b92bd0 (patch) | |
tree | 2b1998d904a16cdce69f69041c89cc56d474e69e /sca-cpp/trunk/modules/scheme | |
parent | d93ec216d63aed8ff2f08b4cba7de965dc14639c (diff) |
Implement a portable alternative to __thread and get the HTTP and SQLDB components and the Auth modules working with the HTTPD multithreaded event MPM.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1162472 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/scheme')
-rw-r--r-- | sca-cpp/trunk/modules/scheme/primitive.hpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sca-cpp/trunk/modules/scheme/primitive.hpp b/sca-cpp/trunk/modules/scheme/primitive.hpp index 899d6f83da..59aee12073 100644 --- a/sca-cpp/trunk/modules/scheme/primitive.hpp +++ b/sca-cpp/trunk/modules/scheme/primitive.hpp @@ -30,6 +30,7 @@ #include "function.hpp" #include "list.hpp" #include "value.hpp" +#include "parallel.hpp" namespace tuscany { namespace scheme { @@ -39,14 +40,16 @@ const value quoteSymbol("'"); const value lambdaSymbol("lambda"); #ifdef WANT_THREADS -__thread -#endif +perthread_ptr<ostream> displayOutStream; +#else ostream* displayOutStream = NULL; +#endif #ifdef WANT_THREADS -__thread -#endif +perthread_ptr<ostream> logOutStream; +#else ostream* logOutStream = NULL; +#endif const bool setupDisplay(ostream& out) { displayOutStream = &out; |