IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo struct

TmemDeallocStorage

struct TmemDeallocStorage

Storage for TMEM deallocation synchronization.

Single barrier + address storage for TMEM lifecycle management.

Fields​

  • ​barrier_storage (TmemDeallocStorage.BarrierArray.Storage):
  • ​addr_storage (TmemDeallocStorage.AddrArray.Storage):

Implemented traits​

AnyType, ImplicitlyDestructible

comptime members​

AddrArray​

comptime AddrArray = SMemArray[UInt32, 1]

BarrierArray​

comptime BarrierArray = SMemArray[SharedMemBarrier, 1]

Methods​

barrier​

barrier(ref[AddressSpace._value] self) -> TmemDeallocStorage.BarrierArray

Returns:

TmemDeallocStorage.BarrierArray

addr​

addr(ref[AddressSpace._value] self) -> TmemDeallocStorage.AddrArray

Returns:

TmemDeallocStorage.AddrArray