BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
non_preemptable_scope_check.cpp
Go to the documentation of this file.
1 #ifndef NDEBUG
3 #include <fc/thread/thread.hpp>
4 #include "thread_d.hpp"
5 
6 
7 namespace fc
8 {
10  {
12  }
13 
15  {
16  assert(thread::current().my->non_preemptable_scope_count > 0);
18  }
19 } // fc
20 #endif
fc::thread::current
static thread & current()
Definition: thread.cpp:125
fc
Definition: api.hpp:15
fc::thread_d::non_preemptable_scope_count
unsigned non_preemptable_scope_count
Definition: thread_d.hpp:125
thread_d.hpp
thread.hpp
fc::non_preemptable_scope_check::non_preemptable_scope_check
non_preemptable_scope_check()
Definition: non_preemptable_scope_check.cpp:9
fc::non_preemptable_scope_check::~non_preemptable_scope_check
~non_preemptable_scope_check()
Definition: non_preemptable_scope_check.cpp:14
non_preemptable_scope_check.hpp