MCPcopy Create free account
hub / github.com/apache/trafficserver / AtomicSLL

Method AtomicSLL

include/tscore/List.h:976–981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

974#define ASLLM(_c, _m, _ml, _l) AtomicSLL<_c, _c::Link##_##_ml##_##_l>
975
976template <class C, class L> inline AtomicSLL<C, L>::AtomicSLL()
977{
978 // need @c offsetof but that's not reliable until C++17, and we can't use the nullptr trick directly because
979 // clang-analyzer gets upset, so we use 0x10 as the base and subtract it back afterwards.
980 ink_atomiclist_init(&al, "AtomicSLL", reinterpret_cast<uintptr_t>(&L::next_link(reinterpret_cast<C *>(0x10))) - 0x10);
981}

Callers

nothing calls this directly

Calls 1

ink_atomiclist_initFunction · 0.85

Tested by

no test coverage detected