Share via


location Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

An abstraction of a physical location on hardware.

Syntax

class location;

Members

Public Constructors

Name Description
location::location Constructor Overloaded. Constructs a location object.
location::~location Destructor Destroys a location object.

Public Methods

Name Description
location::current Method Returns a location object representing the most specific place the calling thread is executing.
location::from_numa_node Method Returns a location object which represents a given NUMA node.

Public Operators

Name Description
location::operator!= Operator Determines whether two location objects represent different location.
location::operator= Operator Assigns the contents of a different location object to this one.
location::operator== Operator Determines whether two location objects represent the same location.

Inheritance Hierarchy

location

Requirements

Header: concrt.h

Namespace: concurrency

location::~location Destructor

Destroys a location object.

~location();

location::current Method

Returns a location object representing the most specific place the calling thread is executing.

static location __cdecl current();

Return Value

A location representing the most specific place the calling thread is executing.

location::from_numa_node Method

Returns a location object which represents a given NUMA node.

static location __cdecl from_numa_node(unsigned short _NumaNodeNumber);

Parameters

_NumaNodeNumber
The NUMA node number to construct a location for.

Return Value

A location representing the NUMA node specified by the _NumaNodeNumber parameter.

location::location Constructor

Constructs a location object.

location();

location(
    const location& _Src);

location(
    T _LocationType,
    unsigned int _Id,
    unsigned int _BindingId = 0,
    _Inout_opt_ void* _PBinding = NULL);

Parameters

_Src
_LocationType
_Id
_BindingId
_PBinding

Remarks

A default constructed location represents the system as a whole.

location::operator!= Operator

Determines whether two location objects represent different location.

bool operator!= (const location& _Rhs) const;

Parameters

_Rhs

Return Value

true if the two locations are different, false otherwise.

location::operator= Operator

Assigns the contents of a different location object to this one.

location& operator= (const location& _Rhs);

Parameters

_Rhs
The source location object.

Return Value

location::operator== Operator

Determines whether two location objects represent the same location.

bool operator== (const location& _Rhs) const;

Parameters

_Rhs

Return Value

true if the two locations are identical, and false otherwise.

See Also

concurrency Namespace