Define AVS_COMMONS_COMPAT_THREADING_WITH_ATOMIC_SPINLOCK

Define Documentation

AVS_COMMONS_COMPAT_THREADING_WITH_ATOMIC_SPINLOCK

Options that control compilation of avs_compat_threading implementations.

If CMake is not used, in the typical scenario at most one of the following implementations may be enabled at the same time. If none is enabled, the relevant symbols will need to be provided by the user, if used.

These are meaningful only if AVS_COMMONS_WITH_AVS_COMPAT_THREADING is defined. Enable implementation based on spinlocks.

This implementation is usually very inefficient, and requires C11 stdatomic.h header to be available.