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 330bd33 commit aa5f076Copy full SHA for aa5f076
examples/graceful_shutdown.cpp
@@ -42,7 +42,7 @@ int main()
42
43
// Continuously write to channel until process shutdown is requested
44
const auto produce = [&channel]() {
45
- thread_local static int inc = 0;
+ static int inc = 0;
46
47
while (!shutdown.load(std::memory_order_seq_cst)) {
48
++inc;
0 commit comments