#ifndef NDEBUG #include #include #include "thread_d.hpp" namespace fc { non_preemptable_scope_check::non_preemptable_scope_check() { ++thread::current().my->non_preemptable_scope_count; } non_preemptable_scope_check::~non_preemptable_scope_check() { assert(thread::current().my->non_preemptable_scope_count > 0); --thread::current().my->non_preemptable_scope_count; } } // fc #endif