| description | Learn more about: scheduler_ptr Structure | |||||
|---|---|---|---|---|---|---|
| title | scheduler_ptr Structure | |||||
| ms.date | 11/04/2016 | |||||
| f1_keywords |
|
|||||
| ms.assetid | e88c84af-c306-476d-aef1-f42a0fa0a80f |
Represents a pointer to a scheduler. This class exists to allow the specification of a shared lifetime by using shared_ptr or just a plain reference by using raw pointer.
struct scheduler_ptr;| Name | Description |
|---|---|
| scheduler_ptr::scheduler_ptr | Overloaded. Creates a scheduler pointer from shared_ptr to scheduler |
| Name | Description |
|---|---|
| scheduler_ptr::get | Returns the raw pointer to the scheduler |
| Name | Description |
|---|---|
| scheduler_ptr::operator bool | Test whether the scheduler pointer is non-null |
| scheduler_ptr::operator-> | Behave like a pointer |
scheduler_ptr
Header: pplinterface.h
Namespace: concurrency
Returns the raw pointer to the scheduler.
scheduler_interface* get() const;Tests whether the scheduler pointer is non-null.
operator bool() const;Behaves like a pointer.
scheduler_interface* operator->() const;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);scheduler
The scheduler to convert.
pScheduler
The scheduler pointer to convert.