Skip to content

Commit aa5f076

Browse files
Remove thread_local
1 parent 330bd33 commit aa5f076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/graceful_shutdown.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int main()
4242

4343
// Continuously write to channel until process shutdown is requested
4444
const auto produce = [&channel]() {
45-
thread_local static int inc = 0;
45+
static int inc = 0;
4646

4747
while (!shutdown.load(std::memory_order_seq_cst)) {
4848
++inc;

0 commit comments

Comments
 (0)