共用方式為


array_view::synchronize_to_async 方法

非同步會將對此 array_view 物件進行的任何修改同步處理至指定的 accelerator_view。

concurrency::completion_future synchronize_to_async(
   const accelerator_view& _Accl_view,
   access_type _Access_type = access_type_read
) const restrict(cpu);

concurrency::completion_future synchronize_to_async(
   const accelerator_view& _Accl_view
) const restrict(cpu);

參數

  • _Accl_view
    同步處理的目標 accelerator_view。

  • _Access_type
    目標 accelerator_view 上所需的 access_type。 這個參數的預設值為 access_type_read。

傳回值

一個要在其上等待作業完成的未來。

需求

**標頭:**amp.h

**命名空間:**concurrency

請參閱

參考

array_view 類別