Update cpp.md
Some checks failed
CI / linting (push) Has been cancelled

Signed-off-by: Dennis Eichhorn <spl1nes.com@googlemail.com>
This commit is contained in:
Dennis Eichhorn 2024-08-05 19:58:40 +02:00 committed by GitHub
parent ecc5c87e8f
commit aa5dd6d6b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -182,7 +182,7 @@ Lockless version
atomic_int counter = 0;
void increment_counter() {
atomic_fetch_add(&counter, 1); // Atomic operation, no locking needed
atomic_fetch_add(&counter, 1);
}
```