mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 01:30:13 +00:00
Simple atomic add/dec do no guarantee reference count full synchronization without a lock. Compare and swap operations are required for correct implementation. Tracked-On: #1875 Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Yin Fengwei <fengwei.yin@intel.com>