MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __hxcpp_atomic_object_compare_exchange

Function __hxcpp_atomic_object_compare_exchange

include/hx/StdLibs.h:575–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575inline Dynamic __hxcpp_atomic_object_compare_exchange(Dynamic dynObj, Dynamic expected, Dynamic replacement) {
576 AtomicObject *obj = dynamic_cast<AtomicObject *>(dynObj.mPtr);
577 if (!obj)
578 throw HX_INVALID_OBJECT;
579 return obj->compareExchange(expected, replacement);
580}
581
582Array<String> __hxcpp_get_call_stack(bool inSkipLast);
583Array<String> __hxcpp_get_exception_stack();

Callers

nothing calls this directly

Calls 1

compareExchangeMethod · 0.80

Tested by

no test coverage detected