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

Function increment_pointer_version

src/proxy/logging/LogObject.cc:319–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319static head_p
320increment_pointer_version(head_p *dst)
321{
322 head_p h;
323 head_p new_h;
324
325 do {
326 INK_QUEUE_LD(h, *dst);
327 SET_FREELIST_POINTER_VERSION(new_h, FREELIST_POINTER(h), FREELIST_VERSION(h) + 1);
328 } while (ink_atomic_cas(&dst->data, h.data, new_h.data) == false);
329
330 return h;
331}
332
333static bool
334write_pointer_version(head_p *dst, head_p old_h, void *ptr, head_p::version_type vers)

Callers 1

_checkout_writeMethod · 0.85

Calls 1

ink_atomic_casFunction · 0.85

Tested by

no test coverage detected