function libbenchmark_misc_pal_helper_new_topology_node
Source Files
└───test_and_benchmark └───libbenchmark ├───inc │ └───libbenchmark │ libbenchmark_porting_abstraction_layer.h └───src └───libbenchmark_misc libbenchmark_misc_pal_helpers.c
Opaque Structures
struct libbenchmark_topology_node_state; struct libshared_memory_state;
Prototype
void libbenchmark_misc_pal_helper_new_topology_node( struct libbenchmark_topology_node_state **tns, struct libshared_memory_state *ms );
Parameters
struct libbenchmark_topology_node_state **tns
- A pointer to a pointer to a struct libbenchmark_topology_node. A new struct will be allocated, and *tns will be set to point to it.
struct libshared_memory_state *ms
- A pointer to an initialized and populated struct libshared_memory_state.
Return Value
No return value.
Example
Notes
This helper function is used by libbenchmark_pal_populate_topology to allocate and initialize a new struct libbenchmark_topology_node_state.