BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface 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
static thread & current()
Definition: thread.cpp:125
unsigned non_preemptable_scope_count
Definition: thread_d.hpp:125
Definition: api.hpp:15