Impl API

API required for extending Blend2D functionality.

Everything that is part of this group requires <blend2d-impl.h> to be included before the use as this API is only for users that extend Blend2D.

Atomic Operations

Function Documentation

template<typename T>
std::remove_volatile<T>::type blAtomicFetchAdd(T* x, typename std::remove_volatile<T>::type n = 1, std::memory_order order = std::memory_order_relaxed)static

Atomically increments n to value x. The old value is returned.

template<typename T>
std::remove_volatile<T>::type blAtomicFetchSub(T* x, typename std::remove_volatile<T>::type n = 1, std::memory_order order = std::memory_order_acq_rel)static

Atomically decrements n from value x. The old value is returned.