2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-09 23:42:18 +00:00

Removed the "intentional memory leak" of the TSS implementation.

[SVN r35434]
This commit is contained in:
Roland Schwarz
2006-10-01 12:57:18 +00:00
parent fbbc52063a
commit c376c1a62a
3 changed files with 102 additions and 45 deletions

View File

@@ -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 @@ public:
}
}
~tss();
void* get() const;
void set(void* value);
void cleanup(void* p);
@@ -98,6 +106,10 @@ private:
detail::tss m_tss;
};
#ifdef BOOST_MSVC
# pragma warning(pop)
#endif
} // namespace boost
#endif //BOOST_TSS_WEK070601_HPP