title | description | ms.date | f1_keywords | helpviewer_keywords | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
tile_barrier Class |
Learn more about: tile_barrier Class |
03/27/2019 |
|
|
Synchronizes the execution of threads that are running in the thread group (the tile) by using wait
methods. Only the runtime can instantiate this class.
class tile_barrier;
Name | Description |
---|---|
tile_barrier Constructor | Initializes a new instance of the tile_barrier class. |
Name | Description |
---|---|
wait | Instructs all threads in the thread group (tile) to stop executing until all threads in the tile have finished waiting. |
wait_with_all_memory_fence | Blocks execution of all threads in a tile until all memory accesses have been completed and all threads in the tile have reached this call. |
wait_with_global_memory_fence | Blocks execution of all threads in a tile until all global memory accesses have been completed and all threads in the tile have reached this call. |
wait_with_tile_static_memory_fence | Blocks execution of all threads in a tile until all tile_static memory accesses have been completed and all threads in the tile have reached this call. |
tile_barrier
Header: amp.h
Namespace: Concurrency
Initializes a new instance of the class by copying an existing one.
tile_barrier(
const tile_barrier& _Other ) restrict(amp,cpu);
_Other
The tile_barrier
object to copy.
Instructs all threads in the thread group (tile) to stop execution until all threads in the tile have finished waiting.
void wait() const restrict(amp);
Blocks execution of all threads in a tile until all threads in a tile have reached this call. This ensures that all memory accesses are visible to other threads in the thread tile, and have been executed in program order.
void wait_with_all_memory_fence() const restrict(amp);
Blocks execution of all threads in a tile until all threads in a tile have reached this call. This ensures that all global memory accesses are visible to other threads in the thread tile, and have been executed in program order.
void wait_with_global_memory_fence() const restrict(amp);
Blocks execution of all threads in a tile until all threads in a tile have reached this call. This ensures that tile_static
memory accesses are visible to other threads in the thread tile, and have been executed in program order.
void wait_with_tile_static_memory_fence() const restrict(amp);