From 29edc4e6fb2c8fb3a93aac36d9666efd21b92bd0 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sun, 28 Aug 2011 02:50:02 +0000 Subject: 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 --- sca-cpp/trunk/modules/server/mod-eval.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sca-cpp/trunk/modules/server') diff --git a/sca-cpp/trunk/modules/server/mod-eval.hpp b/sca-cpp/trunk/modules/server/mod-eval.hpp index b9b11e06dc..34cdfdbb29 100644 --- a/sca-cpp/trunk/modules/server/mod-eval.hpp +++ b/sca-cpp/trunk/modules/server/mod-eval.hpp @@ -100,9 +100,10 @@ const failable failableResult(const list& v) { * Store current HTTP request for access from property and proxy lambda functions. */ #ifdef WANT_THREADS -__thread -#endif +perthread_ptr currentRequest; +#else request_rec* currentRequest = NULL; +#endif class ScopedRequest { public: -- cgit v1.2.3