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
scheduler_interface * _M_scheduler
Definition: pplinterface.h:88
std::shared_ptr< scheduler_interface > _M_sharedScheduler
Definition: pplinterface.h:87
constexpr remove_reference< _Ty >::type && move(_Ty &&_Arg) _NOEXCEPT
Definition: type_traits:1349
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:88
scheduler_interface* Concurrency::scheduler_ptr::get |
( |
| ) |
const |
|
inline |
Returns the raw pointer to the scheduler
scheduler_interface * _M_scheduler
Definition: pplinterface.h:88
Concurrency::scheduler_ptr::operator bool |
( |
| ) |
const |
|
inline |
Test whether the scheduler pointer is non-null
83 {
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: