Update of /cvsroot/boost/boost/boost/thread
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8244/boost/thread
Modified Files:
Tag: RC_1_34_0
tss.hpp
Log Message:
Removed the "intentional memory leak" of the TSS implementation.
Index: tss.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/thread/tss.hpp,v
retrieving revision 1.13.12.2
retrieving revision 1.13.12.3
diff -u -d -r1.13.12.2 -r1.13.12.3
--- tss.hpp 14 Sep 2006 21:50:59 -0000 1.13.12.2
+++ tss.hpp 1 Oct 2006 12:57:18 -0000 1.13.12.3
@@ -1,5 +1,5 @@
-// Copyright (C) 2001-2003
-// William E. Kempf
+// Copyright (C) 2001-2003 William E. Kempf
+// Copyright (C) 2006 Roland Schwarz
//
// Distributed under the Boost Software License, Version 1.0. (See
accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -21,6 +21,13 @@
namespace boost {
+// disable warnings about non dll import
+// see: http://www.boost.org/more/separate_compilation.html#dlls
+#ifdef BOOST_MSVC
+# pragma warning(push)
+# pragma warning(disable: 4251 4231 4660 4275)
+#endif
+
namespace detail {
class BOOST_THREAD_DECL tss : private noncopyable
@@ -39,6 +46,7 @@
}
}
+ ~tss();
void* get() const;
void set(void* value);
void cleanup(void* p);
@@ -98,6 +106,10 @@
detail::tss m_tss;
};
+#ifdef BOOST_MSVC
+# pragma warning(pop)
+#endif
+
} // namespace boost
#endif //BOOST_TSS_WEK070601_HPP
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs