StormByte 3.0.0
C++26 foundation of the StormByte suite
Loading...
Searching...
No Matches
atomic.hxx File Reference
#include <StormByte/safe/memory_order.hxx>
#include <StormByte/type_traits/categories.hxx>
#include <StormByte/visibility.h>
#include <cstddef>
#include <cstdint>
#include <type_traits>
Include dependency graph for atomic.hxx:

Go to the source code of this file.

Classes

class  StormByte::Safe::Atomic< T >
 Atomic word of one, two, four or eight bytes. More...

Namespaces

namespace  StormByte
 Root namespace of the StormByte suite.
namespace  StormByte::Safe
 Owned values that cross a DLL without the caller's CRT.
namespace  StormByte::Safe::Detail
 Private helpers.

Functions

void * StormByte::Safe::Detail::WordCreate (std::size_t bytes)
 Allocate a zeroed word on Base's heap.
void StormByte::Safe::Detail::WordDestroy (void *word) noexcept
 Destroy a word from WordCreate.
void StormByte::Safe::Detail::WordLoad (void *word, std::size_t bytes, void *out, MemoryOrder order) noexcept
 Load the low bytes of a word.
void StormByte::Safe::Detail::WordStore (void *word, std::size_t bytes, const void *value, MemoryOrder order) noexcept
 Store bytes into the low part of a word.
void StormByte::Safe::Detail::WordExchange (void *word, std::size_t bytes, const void *desired, void *previous, MemoryOrder order) noexcept
 Replace the value and return the previous one.
bool StormByte::Safe::Detail::WordCompareExchange (void *word, std::size_t bytes, void *expected, const void *desired, MemoryOrder success, MemoryOrder failure, bool weak) noexcept
 Compare-exchange the low bytes.
void StormByte::Safe::Detail::WordFetchOp (void *word, std::size_t bytes, std::int64_t delta, void *previous, MemoryOrder order, int op) noexcept
 Integer operation on the low bytes.
void StormByte::Safe::Detail::WordWait (void *word, std::size_t bytes, const void *old, MemoryOrder order) noexcept
 Wait while the low bytes still equal old.
void StormByte::Safe::Detail::WordNotifyOne (void *word) noexcept
 Wake one waiter on word.
void StormByte::Safe::Detail::WordNotifyAll (void *word) noexcept
 Wake every waiter on word.
bool StormByte::Safe::Detail::WordLockFree (void *word) noexcept
 Whether Base's word is lock-free.