Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Syntax
struct scheduler_ptr;
Members
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 |
Inheritance Hierarchy
scheduler_ptr
Requirements
Header: pplinterface.h
Namespace: concurrency
scheduler_ptr::get Method (Concurrency Runtime)
Returns the raw pointer to the scheduler
scheduler_interface* get() const;
Return Value
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_interface* operator->() const;
Return Value
scheduler_ptr::scheduler_ptr Constructor (Concurrency Runtime)
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