]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/src/tss_null.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / thread / src / tss_null.cpp
1 // (C) Copyright Michael Glassford 2004.
2 // (C) Copyright 2007 Anthony Williams
3 // Use, modification and distribution are subject to the
4 // Boost Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7 #include <boost/thread/detail/config.hpp>
8
9 #if defined(BOOST_THREAD_WIN32) && (defined(BOOST_THREAD_BUILD_LIB) || defined(BOOST_THREAD_TEST) || defined(UNDER_CE)) && (!defined(_MSC_VER) || defined(UNDER_CE))
10
11 namespace boost
12 {
13 /*
14 This file is a "null" implementation of tss cleanup; it's
15 purpose is to to eliminate link errors in cases
16 where it is known that tss cleanup is not needed.
17 */
18
19 void tss_cleanup_implemented(void)
20 {
21 /*
22 This function's sole purpose is to cause a link error in cases where
23 automatic tss cleanup is not implemented by Boost.Threads as a
24 reminder that user code is responsible for calling the necessary
25 functions at the appropriate times (and for implementing an a
26 tss_cleanup_implemented() function to eliminate the linker's
27 missing symbol error).
28
29 If Boost.Threads later implements automatic tss cleanup in cases
30 where it currently doesn't (which is the plan), the duplicate
31 symbol error will warn the user that their custom solution is no
32 longer needed and can be removed.
33 */
34 }
35
36 }
37
38 #endif //defined(BOOST_THREAD_WIN32) && defined(BOOST_THREAD_BUILD_LIB) && !defined(_MSC_VER)