|
Last change
on this file since 47 was
29,
checked in by landauf, 17 years ago
|
|
updated boost from 1_33_1 to 1_34_1
|
|
File size:
1.4 KB
|
| Line | |
|---|
| 1 | // (C) Copyright Michael Glassford 2004. |
|---|
| 2 | // Use, modification and distribution are subject to the |
|---|
| 3 | // Boost Software License, Version 1.0. (See accompanying file |
|---|
| 4 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
|---|
| 5 | |
|---|
| 6 | #include <boost/thread/detail/config.hpp> |
|---|
| 7 | |
|---|
| 8 | #if defined(BOOST_HAS_WINTHREADS) && (defined(BOOST_THREAD_BUILD_LIB) || defined(BOOST_THREAD_TEST)) && !defined(_MSC_VER) |
|---|
| 9 | |
|---|
| 10 | /* |
|---|
| 11 | This file is a "null" implementation of tss cleanup; it's |
|---|
| 12 | purpose is to to eliminate link errors in cases |
|---|
| 13 | where it is known that tss cleanup is not needed. |
|---|
| 14 | */ |
|---|
| 15 | |
|---|
| 16 | extern "C" void tss_cleanup_implemented(void) |
|---|
| 17 | { |
|---|
| 18 | /* |
|---|
| 19 | This function's sole purpose is to cause a link error in cases where |
|---|
| 20 | automatic tss cleanup is not implemented by Boost.Threads as a |
|---|
| 21 | reminder that user code is responsible for calling the necessary |
|---|
| 22 | functions at the appropriate times (and for implementing an a |
|---|
| 23 | tss_cleanup_implemented() function to eliminate the linker's |
|---|
| 24 | missing symbol error). |
|---|
| 25 | |
|---|
| 26 | If Boost.Threads later implements automatic tss cleanup in cases |
|---|
| 27 | where it currently doesn't (which is the plan), the duplicate |
|---|
| 28 | symbol error will warn the user that their custom solution is no |
|---|
| 29 | longer needed and can be removed. |
|---|
| 30 | */ |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | #endif //defined(BOOST_HAS_WINTHREADS) && defined(BOOST_THREAD_BUILD_LIB) && !defined(_MSC_VER) |
|---|
Note: See
TracBrowser
for help on using the repository browser.