MCPcopy Create free account
hub / github.com/apache/arrow / load_atomic

Function load_atomic

cpp/gdb_arrow.py:217–223  ·  view source on GitHub ↗

Load a std::atomic 's value.

(val)

Source from the content-addressed store, hash-verified

215
216
217def load_atomic(val):
218 """
219 Load a std::atomic<T>&#x27;s value.
220 """
221 valty = val.type.template_argument(0)
222 # XXX This assumes std::atomic<T> has the same layout as a raw T.
223 return val.address.reinterpret_cast(valty.pointer()).dereference()
224
225
226def load_null_count(val):

Callers 1

load_null_countFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected