[/ (C) Copyright 2008 Oliver Kowalke. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt). ] [section:task_ref Class template `task`] #include template< typename R > class task { public: template< typename Pool > task( Pool * pool, future< R > const& fut, detail::interrupter const& intr); void interrupt(); void interrupt_and_wait(); template< typename Tm > void interrupt_and_wait( Tm const& tm); bool is_interrupted(); R get() const; operator R() const; R operator()() const; bool ready() const; bool has_value() const; bool has_exception() const; void add_callback( function< void() > const& f); }; [endsect]