Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77331 - in trunk/boost/context: . detail
From: oliver.kowalke_at_[hidden]
Date: 2012-03-14 04:29:23


Author: olli
Date: 2012-03-14 04:29:20 EDT (Wed, 14 Mar 2012)
New Revision: 77331
URL: http://svn.boost.org/trac/boost/changeset/77331

Log:
context: fix missing memebr functions incontext

Text files modified:
   trunk/boost/context/context.hpp | 18 ++++++++++++++++++
   trunk/boost/context/detail/context_base.hpp | 2 +-
   2 files changed, 19 insertions(+), 1 deletions(-)

Modified: trunk/boost/context/context.hpp
==============================================================================
--- trunk/boost/context/context.hpp (original)
+++ trunk/boost/context/context.hpp 2012-03-14 04:29:20 EDT (Wed, 14 Mar 2012)
@@ -305,6 +305,24 @@
         BOOST_ASSERT( impl_);
         return impl_->is_complete();
     }
+
+ bool is_started() const
+ {
+ BOOST_ASSERT( impl_);
+ return impl_->is_started();
+ }
+
+ bool is_resumed() const
+ {
+ BOOST_ASSERT( impl_);
+ return impl_->is_resumed();
+ }
+
+ bool is_running() const
+ {
+ BOOST_ASSERT( impl_);
+ return impl_->is_running();
+ }
 };
 
 inline

Modified: trunk/boost/context/detail/context_base.hpp
==============================================================================
--- trunk/boost/context/detail/context_base.hpp (original)
+++ trunk/boost/context/detail/context_base.hpp 2012-03-14 04:29:20 EDT (Wed, 14 Mar 2012)
@@ -138,7 +138,7 @@
     { return 0 != ( flags_ & flag_started); }
 
     bool is_resumed() const
- { return 0 != ( flags_ & flag_started); }
+ { return 0 != ( flags_ & flag_resumed); }
 
     bool is_running() const
     { return 0 != ( flags_ & flag_running); }


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