Provides transactional queues. More...
#include "picotm/config/picotm-txlib-config.h"
#include "picotm/compiler.h"
#include <stdbool.h>
#include <stddef.h>
#include "picotm-txqueue-state.h"
Functions | |
PICOTM_NOTHROW struct txqueue_entry * | txqueue_back_tx (struct txqueue *self) |
Retruns the back-end entry of a transactional queue. More... | |
PICOTM_NOTHROW bool | txqueue_empty_tx (struct txqueue *self) |
Tests a transactional queue for emptiness. More... | |
PICOTM_NOTHROW void | txqueue_entry_init_tm (struct txqueue_entry *self) |
Initializes an entry of a transactional queue from within a transaction. More... | |
PICOTM_NOTHROW void | txqueue_entry_uninit_tm (struct txqueue_entry *self) |
Cleans up an entry of a transactional queue. More... | |
PICOTM_NOTHROW struct txqueue_entry * | txqueue_front_tx (struct txqueue *self) |
Returns the front-end entry of a transactional queue. More... | |
PICOTM_NOTHROW struct txqueue * | txqueue_of_state_tx (struct txqueue_state *queue_state) |
Creates a transactional queue for a queue state. More... | |
PICOTM_NOTHROW void | txqueue_pop_tx (struct txqueue *self) |
Removes the last entry of a transactional queue. More... | |
PICOTM_NOTHROW void | txqueue_push_tx (struct txqueue *self, struct txqueue_entry *entry) |
Inserts an entry at the front of a transactional queue. More... | |
PICOTM_NOTHROW size_t | txqueue_size_tx (struct txqueue *self) |
Returns the number of entries in a transactional queue. More... | |