2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-13 00:12:17 +00:00

some fixes

This commit is contained in:
Oliver Kowalke
2014-09-24 19:18:44 +02:00
parent 244c539a2e
commit 7fb469cd10
39 changed files with 728 additions and 1139 deletions

View File

@@ -10,6 +10,7 @@
#include <boost/throw_exception.hpp>
#include "boost/fiber/detail/fiber_base.hpp"
#include "boost/fiber/detail/interrupt_flags.hpp"
#include "boost/fiber/fiber_manager.hpp"
#include "boost/fiber/exceptions.hpp"
@@ -50,13 +51,13 @@ restore_interruption::~restore_interruption() BOOST_NOEXCEPT
bool interruption_enabled() BOOST_NOEXCEPT
{
fibers::detail::worker_fiber * f = fibers::fm_active();
fibers::detail::fiber_base * f = fibers::fm_active();
return 0 != f && ! f->interruption_blocked();
}
bool interruption_requested() BOOST_NOEXCEPT
{
fibers::detail::worker_fiber * f = fibers::fm_active();
fibers::detail::fiber_base * f = fibers::fm_active();
if ( 0 == f) return false;
return f->interruption_requested();
}