| title | location Class | Microsoft Docs | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||||||
| ms.date | 11/04/2016 | |||||||||||||
| ms.reviewer | ||||||||||||||
| ms.suite | ||||||||||||||
| ms.technology |
|
|||||||||||||
| ms.tgt_pltfrm | ||||||||||||||
| ms.topic | article | |||||||||||||
| f1_keywords |
|
|||||||||||||
| dev_langs |
|
|||||||||||||
| helpviewer_keywords |
|
|||||||||||||
| ms.assetid | c3289f51-5bf1-4dff-a18d-d0dab8e5d9c7 | |||||||||||||
| caps.latest.revision | 10 | |||||||||||||
| author | mikeblome | |||||||||||||
| ms.author | mblome | |||||||||||||
| manager | ghogen | |||||||||||||
| translation.priority.ht |
|
An abstraction of a physical location on hardware.
class location;
| Name | Description |
|---|---|
| location | Overloaded. Constructs a location object. |
| ~location Destructor | Destroys a location object. |
| Name | Description |
|---|---|
| current | Returns a location object representing the most specific place the calling thread is executing. |
| from_numa_node | Returns a location object which represents a given NUMA node. |
| Name | Description |
|---|---|
| operator!= | Determines whether two location objects represent different location. |
| operator= | Assigns the contents of a different location object to this one. |
| operator== | Determines 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();
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);
_NumaNodeNumber
The NUMA node number to construct a location for.
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);
_Src
_LocationType
_Id
_BindingId
_PBinding
A default constructed location represents the system as a whole.
Determines whether two location objects represent different location.
bool operator!= (const location& _Rhs) const;
_Rhs
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);
_Rhs
The source location object.
Determines whether two location objects represent the same location.
bool operator== (const location& _Rhs) const;
_Rhs
true if the two locations are identical, and false otherwise.