Boost logo

Boost-Commit :

From: anthony_at_[hidden]
Date: 2008-05-27 02:32:05


Author: anthonyw
Date: 2008-05-27 02:32:05 EDT (Tue, 27 May 2008)
New Revision: 45809
URL: http://svn.boost.org/trac/boost/changeset/45809

Log:
intrusive_ptr_add_ref and intrusive_ptr_release need to be inline if defined in the header
Text files modified:
   trunk/boost/thread/win32/condition_variable.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/thread/win32/condition_variable.hpp
==============================================================================
--- trunk/boost/thread/win32/condition_variable.hpp (original)
+++ trunk/boost/thread/win32/condition_variable.hpp 2008-05-27 02:32:05 EDT (Tue, 27 May 2008)
@@ -235,12 +235,12 @@
             }
         
         };
- void intrusive_ptr_add_ref(basic_condition_variable::list_entry * p)
+ inline void intrusive_ptr_add_ref(basic_condition_variable::list_entry * p)
         {
             BOOST_INTERLOCKED_INCREMENT(&p->references);
         }
             
- void intrusive_ptr_release(basic_condition_variable::list_entry * p)
+ inline void intrusive_ptr_release(basic_condition_variable::list_entry * p)
         {
             if(!BOOST_INTERLOCKED_DECREMENT(&p->references))
             {


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