BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
libraries
fc
src
thread
non_preemptable_scope_check.cpp
Go to the documentation of this file.
1
#ifndef NDEBUG
2
#include <
fc/thread/non_preemptable_scope_check.hpp
>
3
#include <
fc/thread/thread.hpp
>
4
#include "
thread_d.hpp
"
5
6
7
namespace
fc
8
{
9
non_preemptable_scope_check::non_preemptable_scope_check
()
10
{
11
++
thread::current
().my->
non_preemptable_scope_count
;
12
}
13
14
non_preemptable_scope_check::~non_preemptable_scope_check
()
15
{
16
assert(
thread::current
().my->non_preemptable_scope_count > 0);
17
--
thread::current
().my->
non_preemptable_scope_count
;
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
Generated on Fri Dec 15 2023 06:12:43 for BitShares-Core by
1.8.17