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
| 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. |
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.