scheduler_ptr Structure (Concurrency Runtime)

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Represents a pointer to a scheduler. This class exists to allow the the specification of a shared lifetime by using shared_ptr or just a plain reference by using raw pointer.

struct scheduler_ptr;

Public Constructors

NameDescription
scheduler_ptr::scheduler_ptr Constructor (Concurrency Runtime)Overloaded. Creates a scheduler pointer from shared_ptr to scheduler

Public Methods

NameDescription
scheduler_ptr::get Method (Concurrency Runtime)Returns the raw pointer to the scheduler

Public Operators

NameDescription
scheduler_ptr::operator bool Operator (Concurrency Runtime)Test whether the scheduler pointer is non-null
scheduler_ptr::operator-> Operator (Concurrency Runtime)Behave like a pointer

scheduler_ptr

Header: pplinterface.h

Namespace: concurrency

Returns the raw pointer to the scheduler

scheduler_interface* get() const;

Return Value

Test whether the scheduler pointer is non-null

Behave like a pointer

scheduler_interface* operator->() const;

Return Value

Creates a scheduler pointer from shared_ptr to scheduler

explicit scheduler_ptr(std::shared_ptr<scheduler_interface> scheduler);

explicit scheduler_ptr(_In_opt_ scheduler_interface* pScheduler);

Parameters

scheduler
pScheduler

concurrency Namespace

Show: