Provides transactional stacks.
More...
#include <picotm/compiler.h>
#include <picotm/config/picotm-txlib-config.h>
#include <stdbool.h>
#include <stddef.h>
#include "picotm-txstack-state.h"
◆ txstack_empty_tx()
- Parameters
-
self | The transactional stack. |
- Returns
- True if the stack is empty, false otherwise.
◆ txstack_entry_init_tm()
- Parameters
-
self | The stack entry to initialize. |
- Attention
- This function expects the entry's memory to be owned by the calling transaction. Shared-memory locations have to be read/write privatized first.
◆ txstack_entry_uninit_tm()
- Parameters
-
self | The stack entry to clean up. |
- Attention
- This function expects the entry's memory to be owned by the calling transaction. Shared-memory locations have to be read/write privatized first.
◆ txstack_of_state_tx()
- Parameters
-
stack_state | The stack state. |
- Returns
- A transactional stack for the stack state.
◆ txstack_pop_tx()
- Parameters
-
self | The transactional stack. |
◆ txstack_push_tx()
- Parameters
-
self | The transactional stack. |
entry | The stack entry to insert. |
◆ txstack_size_tx()
- Parameters
-
self | The transactional stack. |
- Returns
- The number of entries on the transactional stack.
◆ txstack_top_tx()
- Parameters
-
self | The transactional stack. |
- Returns
- The entry at the transactional stack's front end.