Ticket #1470: BTL-calling-conv.diff
File BTL-calling-conv.diff, 3.3 KB (added by , 15 years ago) |
---|
-
boost/thread/detail/tss_hooks.hpp
30 30 31 31 #if defined(BOOST_HAS_WINTHREADS) 32 32 33 extern "C" BOOST_THREAD_DECL void on_process_enter(void);33 extern "C" BOOST_THREAD_DECL void __cdecl on_process_enter(void); 34 34 //Function to be called when the exe or dll 35 35 //that uses Boost.Threads first starts 36 36 //or is first loaded. … … 40 40 //a method for doing so has been discovered. 41 41 //May be omitted; may be called multiple times. 42 42 43 extern "C" BOOST_THREAD_DECL void on_process_exit(void);43 extern "C" BOOST_THREAD_DECL void __cdecl on_process_exit(void); 44 44 //Function to be called when the exe or dll 45 45 //that uses Boost.Threads first starts 46 46 //or is first loaded. … … 50 50 //a method for doing so has been discovered. 51 51 //Must not be omitted; may be called multiple times. 52 52 53 extern "C" BOOST_THREAD_DECL void on_thread_enter(void);53 extern "C" BOOST_THREAD_DECL void __cdecl on_thread_enter(void); 54 54 //Function to be called just after a thread starts 55 55 //in an exe or dll that uses Boost.Threads. 56 56 //Must be called in the context of the thread … … 59 59 //a method for doing so has been discovered. 60 60 //May be omitted; may be called multiple times. 61 61 62 extern "C" BOOST_THREAD_DECL void on_thread_exit(void);62 extern "C" BOOST_THREAD_DECL void __cdecl on_thread_exit(void); 63 63 //Function to be called just be fore a thread ends 64 64 //in an exe or dll that uses Boost.Threads. 65 65 //Must be called in the context of the thread -
libs/thread/src/win32/thread.cpp
533 533 } 534 534 535 535 536 extern "C" BOOST_THREAD_DECL void on_process_enter()536 extern "C" BOOST_THREAD_DECL void __cdecl on_process_enter() 537 537 {} 538 538 539 extern "C" BOOST_THREAD_DECL void on_thread_enter()539 extern "C" BOOST_THREAD_DECL void __cdecl on_thread_enter() 540 540 {} 541 541 542 extern "C" BOOST_THREAD_DECL void on_process_exit()542 extern "C" BOOST_THREAD_DECL void __cdecl on_process_exit() 543 543 {} 544 544 545 extern "C" BOOST_THREAD_DECL void on_thread_exit()545 extern "C" BOOST_THREAD_DECL void __cdecl on_thread_exit() 546 546 { 547 547 boost::run_thread_exit_callbacks(); 548 548 } -
libs/thread/src/win32/tss_pe.cpp
91 91 #if (_MSC_VER < 1300) // 1300 == VC++ 7.0 92 92 typedef void (__cdecl *_PVFV)(void); 93 93 #define INIRETSUCCESS 94 #define PVAPI void 94 #define PVAPI void __cdecl 95 95 #else 96 96 typedef int (__cdecl *_PVFV)(void); 97 97 #define INIRETSUCCESS 0 98 #define PVAPI int 98 #define PVAPI int __cdecl 99 99 #endif 100 100 101 101 typedef void (NTAPI* _TLSCB)(HINSTANCE, DWORD, PVOID);