Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::internal::machine_load_store< T, S > Struct Template Reference

#include <icc_generic.h>

Collaboration diagram for tbb::internal::machine_load_store< T, S >:

Static Public Member Functions

static T load_with_acquire (const volatile T &location)
 
static void store_with_release (volatile T &location, T value)
 

Detailed Description

template<typename T, size_t S>
struct tbb::internal::machine_load_store< T, S >

Definition at line 94 of file icc_generic.h.

Member Function Documentation

◆ load_with_acquire()

template<typename T , size_t S>
static T tbb::internal::machine_load_store< T, S >::load_with_acquire ( const volatile T &  location)
inlinestatic

Definition at line 95 of file icc_generic.h.

95  {
96  return __atomic_load_explicit(&location, memory_order_acquire);
97  }

References tbb::internal::memory_order_acquire.

◆ store_with_release()

template<typename T , size_t S>
static void tbb::internal::machine_load_store< T, S >::store_with_release ( volatile T &  location,
value 
)
inlinestatic

Definition at line 98 of file icc_generic.h.

98  {
99  __atomic_store_explicit(&location, icc_intrinsics_port::convert_argument(value), memory_order_release);
100  }
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long value

References tbb::internal::icc_intrinsics_port::convert_argument(), tbb::internal::memory_order_release, and value.

Here is the call graph for this function:

The documentation for this struct was generated from the following file:

Copyright © 2005-2020 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.