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.

class location;

Public Constructors

NameDescription
location::location ConstructorOverloaded. Constructs a location object.
location::~location DestructorDestroys a location object.

Public Methods

NameDescription
location::current MethodReturns a location object representing the most specific place the calling thread is executing.
location::from_numa_node MethodReturns a location object which represents a given NUMA node.

Public Operators

NameDescription
location::operator!= OperatorDetermines whether two location objects represent different location.
location::operator= OperatorAssigns the contents of a different location object to this one.
location::operator== OperatorDetermines whether two location objects represent the same location.

location

Header: concrt.h

Namespace: concurrency

Destroys a location object.

~location();

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.

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.

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.

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.

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

location& operator= (const location& _Rhs);

Parameters

_Rhs
The source location object.

Return Value

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.

concurrency Namespace

Show: