C# Class WinRTXamlToolkit.Async.AsyncBarrier

Enables multiple tasks to cooperatively work on an algorithm in parallel through multiple phases.
Mostrar archivo Open project: xyzzer/WinRTXamlToolkit

Public Methods

Method Description
AsyncBarrier ( int participantCount ) : System

Initializes a new instance of the AsyncBarrier class.

SignalAndWait ( ) : Task

Signals that a participant has reached the barrier and waits for all other participants to reach the barrier as well.

Method Details

AsyncBarrier() public method

Initializes a new instance of the AsyncBarrier class.
participantCount
public AsyncBarrier ( int participantCount ) : System
participantCount int The participant count.
return System

SignalAndWait() public method

Signals that a participant has reached the barrier and waits for all other participants to reach the barrier as well.
public SignalAndWait ( ) : Task
return Task