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.
More...
#include <pplinterface.h>
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.
Concurrency::scheduler_ptr::scheduler_ptr |
( |
std::shared_ptr< scheduler_interface > |
scheduler | ) |
|
|
inlineexplicit |
Creates a scheduler pointer from shared_ptr to scheduler
_OutIt move(_InIt _First, _InIt _Last, _OutIt _Dest)
Definition: xutility:2447
scheduler_interface * m_scheduler
Definition: pplinterface.h:99
std::shared_ptr< scheduler_interface > m_sharedScheduler
Definition: pplinterface.h:98
Concurrency::scheduler_ptr::scheduler_ptr |
( |
_In_opt_ scheduler_interface * |
pScheduler | ) |
|
|
inlineexplicit |
Creates a scheduler pointer from raw pointer to scheduler
scheduler_interface * m_scheduler
Definition: pplinterface.h:99
scheduler_interface* Concurrency::scheduler_ptr::get |
( |
| ) |
const |
|
inline |
Returns the raw pointer to the scheduler
scheduler_interface * m_scheduler
Definition: pplinterface.h:99
Concurrency::scheduler_ptr::operator bool |
( |
| ) |
const |
|
inline |
Test whether the scheduler pointer is non-null
94 {
return get() !=
nullptr; }
scheduler_interface* Concurrency::scheduler_ptr::operator-> |
( |
| ) |
const |
|
inline |
scheduler_interface* Concurrency::scheduler_ptr::m_scheduler |
|
private |
std::shared_ptr<scheduler_interface> Concurrency::scheduler_ptr::m_sharedScheduler |
|
private |
The documentation for this struct was generated from the following file: