CoreDispatcher.ShouldYield CoreDispatcher.ShouldYield CoreDispatcher.ShouldYield CoreDispatcher.ShouldYield Method

Definition

Overloads

ShouldYield() ShouldYield() ShouldYield() ShouldYield()

Queries whether the caller should yield if there are items in the task queue of higher priority than the current task.

ShouldYield(CoreDispatcherPriority) ShouldYield(CoreDispatcherPriority) ShouldYield(CoreDispatcherPriority) ShouldYield(CoreDispatcherPriority)

Queries whether the caller should yield if there are items in the task queue of the specified priority or higher.

ShouldYield() ShouldYield() ShouldYield() ShouldYield()

Queries whether the caller should yield if there are items in the task queue of higher priority than the current task.

public : Platform::Boolean ShouldYield()
bool ShouldYield() const;
public bool ShouldYield()
Public Function ShouldYield() As bool

Returns

bool bool

true if the current work item should yield to higher priority work; false if it should not.

See also

ShouldYield(CoreDispatcherPriority) ShouldYield(CoreDispatcherPriority) ShouldYield(CoreDispatcherPriority) ShouldYield(CoreDispatcherPriority)

Queries whether the caller should yield if there are items in the task queue of the specified priority or higher.

public : Platform::Boolean ShouldYield(CoreDispatcherPriority priority)
bool ShouldYield(CoreDispatcherPriority priority) const;
public bool ShouldYield(CoreDispatcherPriority priority)
Public Function ShouldYield(priority As CoreDispatcherPriority) As bool

Parameters

priority
CoreDispatcherPriority CoreDispatcherPriority

The minimum priority level for which the current work item should yield.

Returns

bool bool

true if the current work item should yield to higher priority work; false if it should not.

See also