Functions | |
template<typename Elem > | |
void | set (volatile Elem &e, const Elem &value) |
Thread-safe setter for DerechoSST members; ensures there is a std::atomic_signal_fence after writing the value. More... | |
template<typename Elem > | |
void | set (volatile Elem &e, volatile const Elem &value) |
Thread-safe setter for DerechoSST members; ensures there is a std::atomic_signal_fence after writing the value. More... | |
template<typename Elem > | |
void | set (volatile Elem *array, volatile Elem *value, const size_t length) |
Thread-safe setter for DerechoSST members that are arrays; takes a lock before running memcpy, and then ensures there is an atomic_signal_fence. More... | |
template<typename Arr , size_t Len> | |
void | set (volatile Arr(&e)[Len], const volatile Arr(&value)[Len]) |
Thread-safe setter for DerechoSST members that are arrays; takes a lock before running memcpy, and then ensures there is an atomic_signal_fence. More... | |
template<size_t L1, size_t L2, typename Arr > | |
void | set (volatile Arr(&dst)[L1], const volatile Arr(&src)[L2], const size_t &num) |
Thread-safe setter for DerechoSST members that are arrays; takes a lock before running memcpy, and then ensures there is an atomic_signal_fence. More... | |
void | set (volatile char *string_array, const std::string &value) |
Thread-safe setter for DerechoSST members that use SSTFieldVector<char> to represent strings. More... | |
void | increment (volatile int &member) |
Thread-safe increment of an integer member of GMSTableRow; ensures there is a std::atomic_signal_fence after updating the value. More... | |
bool | equals (const volatile char &string_array, const std::string &value) |
bool | equals (const volatile char *string_array, const std::string &value) |
bool derecho::gmssst::equals | ( | const volatile char * | string_array, |
const std::string & | value | ||
) |
Definition at line 164 of file derecho_sst.cpp.
bool derecho::gmssst::equals | ( | const volatile char & | string_array, |
const std::string & | value | ||
) |
void derecho::gmssst::increment | ( | volatile int & | member | ) |
Thread-safe increment of an integer member of GMSTableRow; ensures there is a std::atomic_signal_fence after updating the value.
member | A reference to the member to increment. |
Definition at line 159 of file derecho_sst.cpp.
void derecho::gmssst::set | ( | volatile Elem & | e, |
const Elem & | value | ||
) |
Thread-safe setter for DerechoSST members; ensures there is a std::atomic_signal_fence after writing the value.
e | A reference to a member of GMSTableRow. |
value | The value to set that reference to. |
Definition at line 230 of file derecho_sst.hpp.
void derecho::gmssst::set | ( | volatile Elem & | e, |
volatile const Elem & | value | ||
) |
Thread-safe setter for DerechoSST members; ensures there is a std::atomic_signal_fence after writing the value.
e | A reference to a member of GMSTableRow. |
value | The value to set that reference to. |
Definition at line 242 of file derecho_sst.hpp.
void derecho::gmssst::set | ( | volatile Elem * | array, |
volatile Elem * | value, | ||
const size_t | length | ||
) |
Thread-safe setter for DerechoSST members that are arrays; takes a lock before running memcpy, and then ensures there is an atomic_signal_fence.
The first
members of
are copied to
.
array | A pointer to the first element of an array that should be set to value |
value | A pointer to the first element of an array to read values from |
length | The number of array elements to copy |
Definition at line 257 of file derecho_sst.hpp.
void derecho::gmssst::set | ( | volatile Arr(&) | e[Len], |
const volatile Arr(&) | value[Len] | ||
) |
Thread-safe setter for DerechoSST members that are arrays; takes a lock before running memcpy, and then ensures there is an atomic_signal_fence.
This version copies the entire array, and assumes both arrays are the same length.
e | A reference to an array-type member of GMSTableRow |
value | The array whose contents should be copied to this member |
Definition at line 276 of file derecho_sst.hpp.
void derecho::gmssst::set | ( | volatile Arr(&) | dst[L1], |
const volatile Arr(&) | src[L2], | ||
const size_t & | num | ||
) |
Thread-safe setter for DerechoSST members that are arrays; takes a lock before running memcpy, and then ensures there is an atomic_signal_fence.
This version only copies the first num elements of the source array.
dst | |
src | |
num |
Definition at line 299 of file derecho_sst.hpp.
void derecho::gmssst::set | ( | volatile char * | string_array, |
const std::string & | value | ||
) |
Thread-safe setter for DerechoSST members that use SSTFieldVector<char> to represent strings.
Conveniently hides away strcpy and c_str().
string_array | A pointer to the first element of the char array |
value | The value to set the array to, as a C++ string |
Definition at line 149 of file derecho_sst.cpp.