scheduler_ptr Structure (Concurrency Runtime)
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
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
| Name | Description |
|---|---|
| scheduler_ptr::scheduler_ptr Constructor (Concurrency Runtime) | Overloaded. Creates a scheduler pointer from shared_ptr to scheduler |
Public Methods
| Name | Description |
|---|---|
| scheduler_ptr::get Method (Concurrency Runtime) | Returns the raw pointer to the scheduler |
Public Operators
| Name | Description |
|---|---|
| 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
schedulerpScheduler
Show: