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

Function write_pointer_version

src/proxy/logging/LogObject.cc:333–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333static bool
334write_pointer_version(head_p *dst, head_p old_h, void *ptr, head_p::version_type vers)
335{
336 head_p tmp_h;
337
338 SET_FREELIST_POINTER_VERSION(tmp_h, ptr, vers);
339 return ink_atomic_cas(&dst->data, old_h.data, tmp_h.data);
340}
341
342LogBuffer *
343LogObject::_checkout_write(size_t *write_offset, size_t bytes_needed)

Callers 1

_checkout_writeMethod · 0.85

Calls 1

ink_atomic_casFunction · 0.85

Tested by

no test coverage detected