Jazz 1.25.+
Loading...
Searching...
No Matches
Data Fields
jazz_elements::Transaction Struct Reference

Transaction: A wrapper over a Block that defines the communication of a block with a Container. More...

#include <container.h>

Inheritance diagram for jazz_elements::Transaction:
jazz_elements::StoredTransaction jazz_elements::VolatileTransaction

Data Fields

union { 
 
   pBlock   p_block 
 A pointer to the Block (if status == BLOCK_STATUS_READY) for Tensor, Kind and Tuple.
 
   pBlockHeader   p_hea 
 A pointer to the Block (if status == BLOCK_STATUS_READY) for Index.
 
};  
 
Lock32 _lock_
 An atomically updated int to lock the Transaction to support modifying the Block.
 
int status
 The status of the block transaction.
 
pContainer p_owner
 A pointer to the Container instance serving API calls related to this block.
 

Detailed Description

Transaction: A wrapper over a Block that defines the communication of a block with a Container.

This minimalist struc is the only block wrapper across anything. Anything is: file I/O, http client CRUD, http server GET and PUT, shell commands, Volatile, Persisted and Index objects (an stdlib map that serializes to and from a block).

Transaction allocation is only handled by the owner, a Container or descendant.


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