We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1908f commit 4c3e170Copy full SHA for 4c3e170
source/stop_token.hpp
@@ -53,7 +53,7 @@ struct __stop_state {
53
void __remove_token_reference() noexcept {
54
auto __oldState =
55
__state_.fetch_sub(__token_ref_increment, std::memory_order_acq_rel);
56
- if (__oldState < (__token_ref_increment + __token_ref_increment)) {
+ if (__oldState < (__token_ref_increment + __source_ref_increment)) {
57
delete this;
58
}
59
0 commit comments