Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 10:09:25

0001 // (C) Copyright Michael Glassford 2004.
0002 // Use, modification and distribution are subject to the
0003 // Boost Software License, Version 1.0. (See accompanying file
0004 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0005 
0006 #if !defined(BOOST_TLS_HOOKS_HPP)
0007 #define BOOST_TLS_HOOKS_HPP
0008 
0009 #include <boost/thread/detail/config.hpp>
0010 
0011 #include <boost/config/abi_prefix.hpp>
0012 
0013 #if defined(BOOST_THREAD_WIN32)
0014 
0015 namespace boost
0016 {
0017     BOOST_THREAD_DECL void __cdecl on_process_enter(void);
0018         //Function to be called when the exe or dll
0019             //that uses Boost.Threads first starts
0020             //or is first loaded.
0021         //Should be called only before the first call to
0022             //on_thread_enter().
0023         //Called automatically by Boost.Threads when
0024             //a method for doing so has been discovered.
0025         //May be omitted; may be called multiple times.
0026 
0027     BOOST_THREAD_DECL void __cdecl on_process_exit(void);
0028         //Function to be called when the exe or dll
0029             //that uses Boost.Threads first starts
0030             //or is first loaded.
0031         //Should be called only after the last call to
0032             //on_exit_thread().
0033         //Called automatically by Boost.Threads when
0034             //a method for doing so has been discovered.
0035         //Must not be omitted; may be called multiple times.
0036 
0037     BOOST_THREAD_DECL void __cdecl on_thread_enter(void);
0038         //Function to be called just after a thread starts
0039             //in an exe or dll that uses Boost.Threads.
0040         //Must be called in the context of the thread
0041             //that is starting.
0042         //Called automatically by Boost.Threads when
0043             //a method for doing so has been discovered.
0044         //May be omitted; may be called multiple times.
0045 
0046     BOOST_THREAD_DECL void __cdecl on_thread_exit(void);
0047         //Function to be called just be fore a thread ends
0048             //in an exe or dll that uses Boost.Threads.
0049         //Must be called in the context of the thread
0050             //that is ending.
0051         //Called automatically by Boost.Threads when
0052             //a method for doing so has been discovered.
0053         //Must not be omitted; may be called multiple times.
0054     
0055     void tss_cleanup_implemented();
0056         //Dummy function used both to detect whether tss cleanup
0057             //cleanup has been implemented and to force
0058             //it to be linked into the Boost.Threads library.
0059 }
0060 
0061 #endif //defined(BOOST_THREAD_WIN32)
0062 
0063 #include <boost/config/abi_suffix.hpp>
0064 
0065 #endif //!defined(BOOST_TLS_HOOKS_HPP)