class DynamicTlsPtr

Defined at line 106 of file ../../sdk/lib/c/dlfcn/dl/test/../tlsdesc-runtime-dynamic.h

DynamicTlsPtr is a smart pointer type that's interoperable with assembly

code accessing it as if it were a plain pointer type in memory.

Public Methods

DynamicTlsPtr New (fbl::AllocChecker & ac, const TlsModule & module)

Allocate a new, initialized block for the TlsModule. This is the only way

a new pointer goes into a DynamicTlsPtr; otherwise only moves happen.

Hence, a DynamicTlsPtr always points to a block that already contains its

properly constinit-initialized values for some thread to start using (or,

later, that it is already using).

Defined at line 150 of file ../../sdk/lib/c/dlfcn/dl/test/../tlsdesc-runtime-dynamic.h

void DynamicTlsPtr ()

Defined at line 155 of file ../../sdk/lib/c/dlfcn/dl/test/../tlsdesc-runtime-dynamic.h

void DynamicTlsPtr (const DynamicTlsPtr & )

Defined at line 156 of file ../../sdk/lib/c/dlfcn/dl/test/../tlsdesc-runtime-dynamic.h

void DynamicTlsPtr (DynamicTlsPtr && other)

Defined at line 158 of file ../../sdk/lib/c/dlfcn/dl/test/../tlsdesc-runtime-dynamic.h

DynamicTlsPtr & operator= (const DynamicTlsPtr & )

Defined at line 160 of file ../../sdk/lib/c/dlfcn/dl/test/../tlsdesc-runtime-dynamic.h

DynamicTlsPtr & operator= (DynamicTlsPtr && other)

Defined at line 161 of file ../../sdk/lib/c/dlfcn/dl/test/../tlsdesc-runtime-dynamic.h

void reset ()

Defined at line 167 of file ../../sdk/lib/c/dlfcn/dl/test/../tlsdesc-runtime-dynamic.h

void ~DynamicTlsPtr ()

Defined at line 169 of file ../../sdk/lib/c/dlfcn/dl/test/../tlsdesc-runtime-dynamic.h

bool operator bool ()

Defined at line 171 of file ../../sdk/lib/c/dlfcn/dl/test/../tlsdesc-runtime-dynamic.h

std::span<std::byte> contents (size_t tls_size)

There are no get(), operator*(), or operator->() methods. Once a TLS

block has been allocated, the only way to see a pointer inside it is to

acquire the valid span with knowledge of the TlsModule::tls_size() value

used to allocate this block.

Defined at line 177 of file ../../sdk/lib/c/dlfcn/dl/test/../tlsdesc-runtime-dynamic.h

std::span<std::byte> contents (const TlsModule & module)

Defined at line 178 of file ../../sdk/lib/c/dlfcn/dl/test/../tlsdesc-runtime-dynamic.h

Records