MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / fetch_add

Method fetch_add

tests/framework/src/doctest.cpp:366–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364 T operator++(int) DOCTEST_NOEXCEPT { return fetch_add(1); }
365
366 T fetch_add(T arg, std::memory_order order = std::memory_order_seq_cst) DOCTEST_NOEXCEPT {
367 return myAtomic().fetch_add(arg, order);
368 }
369
370 T fetch_sub(T arg, std::memory_order order = std::memory_order_seq_cst) DOCTEST_NOEXCEPT {
371 return myAtomic().fetch_sub(arg, order);

Callers 15

pushMethod · 0.80
popMethod · 0.80
waitMethod · 0.80
try_dequeueMethod · 0.80
try_dequeue_bulkMethod · 0.80
addMethod · 0.80
concurrent_queue.hFile · 0.80
dequeue_bulkFunction · 0.80
add_producerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected