Boost logo

Boost-Commit :

From: anthony_at_[hidden]
Date: 2007-10-26 05:45:46


Author: anthonyw
Date: 2007-10-26 05:45:46 EDT (Fri, 26 Oct 2007)
New Revision: 40476
URL: http://svn.boost.org/trac/boost/changeset/40476

Log:
disable_cancellation and restore_cancellation need to be declared BOOST_THREAD_DECL to work with DLLs
Text files modified:
   trunk/boost/thread/pthread/thread.hpp | 2 --
   trunk/boost/thread/win32/thread.hpp | 4 ++--
   2 files changed, 2 insertions(+), 4 deletions(-)

Modified: trunk/boost/thread/pthread/thread.hpp
==============================================================================
--- trunk/boost/thread/pthread/thread.hpp (original)
+++ trunk/boost/thread/pthread/thread.hpp 2007-10-26 05:45:46 EDT (Fri, 26 Oct 2007)
@@ -191,8 +191,6 @@
         static void yield();
 
         // extensions
- class cancel_handle;
- cancel_handle get_cancel_handle() const;
         void cancel();
         bool cancellation_requested() const;
     };

Modified: trunk/boost/thread/win32/thread.hpp
==============================================================================
--- trunk/boost/thread/win32/thread.hpp (original)
+++ trunk/boost/thread/win32/thread.hpp 2007-10-26 05:45:46 EDT (Fri, 26 Oct 2007)
@@ -155,7 +155,7 @@
 
     namespace this_thread
     {
- class disable_cancellation
+ class BOOST_THREAD_DECL disable_cancellation
         {
             disable_cancellation(const disable_cancellation&);
             disable_cancellation& operator=(const disable_cancellation&);
@@ -167,7 +167,7 @@
             ~disable_cancellation();
         };
 
- class restore_cancellation
+ class BOOST_THREAD_DECL restore_cancellation
         {
             restore_cancellation(const restore_cancellation&);
             restore_cancellation& operator=(const restore_cancellation&);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk