picotm
0.8.0
|
Provides transactional stacks. More...
#include <picotm/compiler.h>
#include <stdbool.h>
#include <stddef.h>
#include "picotm-txstack-state.h"
Functions | |
PICOTM_NOTHROW struct txstack * | txstack_of_state_tx (struct txstack_state *stack_state) |
Creates a transactional stack for a stack state. More... | |
PICOTM_NOTHROW bool | txstack_empty_tx (struct txstack *self) |
Tests a transactional stack for emptiness. More... | |
PICOTM_NOTHROW size_t | txstack_size_tx (struct txstack *self) |
Returns the number of entries on a transactional stack. More... | |
PICOTM_NOTHROW struct txstack_entry * | txstack_top_tx (struct txstack *self) |
Returns the top-most entry of a transactional stack. More... | |
PICOTM_NOTHROW void | txstack_pop_tx (struct txstack *self) |
Removes the top-most entry of a transactional stack. More... | |
PICOTM_NOTHROW void | txstack_push_tx (struct txstack *self, struct txstack_entry *entry) |
Inserts an entry at the top of a transactional stack. More... | |
PICOTM_NOTHROW bool txstack_empty_tx | ( | struct txstack * | self | ) |
self | The transactional stack. |
PICOTM_NOTHROW struct txstack* txstack_of_state_tx | ( | struct txstack_state * | stack_state | ) |
stack_state | The stack state. |
PICOTM_NOTHROW void txstack_pop_tx | ( | struct txstack * | self | ) |
self | The transactional stack. |
PICOTM_NOTHROW void txstack_push_tx | ( | struct txstack * | self, |
struct txstack_entry * | entry | ||
) |
self | The transactional stack. |
entry | The stack entry to insert. |
PICOTM_NOTHROW size_t txstack_size_tx | ( | struct txstack * | self | ) |
self | The transactional stack. |
PICOTM_NOTHROW struct txstack_entry* txstack_top_tx | ( | struct txstack * | self | ) |
self | The transactional stack. |