![]() |
Jazz 1.25.+
|
Transaction: A wrapper over a Block that defines the communication of a block with a Container. More...
#include <container.h>
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. | ||
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.