Edit

Share via


scheduler_ptr Structure

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.

Syntax

struct scheduler_ptr;

Members

Public Constructors

Name Description
scheduler_ptr::scheduler_ptr Overloaded. Creates a scheduler pointer from shared_ptr to scheduler

Public Methods

Name Description
scheduler_ptr::get Returns the raw pointer to the scheduler

Public Operators

Name Description
scheduler_ptr::operator bool Test whether the scheduler pointer is non-null
scheduler_ptr::operator-> Behave like a pointer

Inheritance Hierarchy

scheduler_ptr

Requirements

Header: pplinterface.h

Namespace: concurrency

scheduler_ptr::get Method

Returns the raw pointer to the scheduler.

scheduler_interface* get() const;

Return Value

scheduler_ptr::operator bool

Tests whether the scheduler pointer is non-null.

operator bool() const;

scheduler_ptr::operator->

Behaves like a pointer.

scheduler_interface* operator->() const;

Return Value

scheduler_ptr::scheduler_ptr Constructor

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
The scheduler to convert.

pScheduler
The scheduler pointer to convert.

See also

concurrency Namespace