tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jsdelf...@apache.org
Subject svn commit: r895170 - in /tuscany/sca-cpp/trunk/kernel: gc.hpp parallel.hpp
Date Sat, 02 Jan 2010 10:43:46 GMT
Author: jsdelfino
Date: Sat Jan  2 10:43:46 2010
New Revision: 895170

URL: http://svn.apache.org/viewvc?rev=895170&view=rev
Log:
Fixed build error with --enable-threads option.

Modified:
    tuscany/sca-cpp/trunk/kernel/gc.hpp
    tuscany/sca-cpp/trunk/kernel/parallel.hpp

Modified: tuscany/sca-cpp/trunk/kernel/gc.hpp
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/kernel/gc.hpp?rev=895170&r1=895169&r2=895170&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/kernel/gc.hpp (original)
+++ tuscany/sca-cpp/trunk/kernel/gc.hpp Sat Jan  2 10:43:46 2010
@@ -225,7 +225,7 @@
 template<typename T> apr_status_t gc_pool_acleanup(void* v) {
     int* m = static_cast<int*>(v);
     int n = *m;
-    T* t = static_cast<T*>(m + 1);
+    T* t = (T*)(m + 1);
     for (int i = 0; i < n; i++, t++)
         t->~T();
     return APR_SUCCESS;
@@ -235,7 +235,7 @@
     int* m = static_cast<int*>(apr_palloc(p, sizeof(int) + sizeof(T[n])));
     *m = n;
     apr_pool_cleanup_register(p, m, gc_pool_acleanup<T>, apr_pool_cleanup_null) ;
-    return static_cast<T*>(m + 1);
+    return (T*)(m + 1);
 }
 
 template<typename T> T* gc_anew(int n) {

Modified: tuscany/sca-cpp/trunk/kernel/parallel.hpp
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/kernel/parallel.hpp?rev=895170&r1=895169&r2=895170&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/kernel/parallel.hpp (original)
+++ tuscany/sca-cpp/trunk/kernel/parallel.hpp Sat Jan  2 10:43:46 2010
@@ -33,6 +33,7 @@
 #endif
 
 #include "function.hpp"
+#include "list.hpp"
 
 namespace tuscany {
 



Mime
View raw message