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

Function load_atomic

cpp/gdb_arrow.py:219–225  ·  view source on GitHub ↗

Load a std::atomic 's value.

(val)

Source from the content-addressed store, hash-verified

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

Callers 1

load_null_countFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected