Provides transactional queues.
More...
#include <picotm/compiler.h>
#include <picotm/config/picotm-txlib-config.h>
#include <stdbool.h>
#include <stddef.h>
#include "picotm-txqueue-state.h"
◆ txqueue_back_tx()
- Parameters
-
self | The transactional queue. |
- Returns
- The entry at the transactional queue's back end.
◆ txqueue_empty_tx()
- Parameters
-
self | The transactional queue. |
- Returns
- True if the queue is empty, false otherwise.
◆ txqueue_entry_init_tm()
- Parameters
-
self | The queue 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.
◆ txqueue_entry_uninit_tm()
- Parameters
-
self | The queue 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.
◆ txqueue_front_tx()
- Parameters
-
self | The transactional queue. |
- Returns
- The entry at the transactional queue's front end.
◆ txqueue_of_state_tx()
- Parameters
-
queue_state | The queue state. |
- Returns
- A transactional queue for the queue state.
◆ txqueue_pop_tx()
- Parameters
-
self | The transactional queue. |
◆ txqueue_push_tx()
- Parameters
-
self | The transactional queue. |
entry | The queue entry to insert. |
◆ txqueue_size_tx()
- Parameters
-
self | The transactional queue. |
- Returns
- The number of entries in the transactional queue.