event manager atomic swap implemented