C Microkernel Realtime eXecutive
Realtime Operating System for Cortex-M based microcontrollers
 
Loading...
Searching...
No Matches
txn.h
1#pragma once
2
3#include <stdint.h>
4
38
40typedef uint8_t Txn_t;
41
52
70int os_txn_commit(Txn_t transaction, enum TxnType type);
71
84int os_txn_start_commit(void);
85
91void os_txn_done(void);
92
99
108int os_sys_txn_commit(Txn_t * domain, Txn_t txn, enum TxnType type);
109
TxnType
Type of the transaction performed.
Definition txn.h:34
int os_sys_txn_commit(Txn_t *domain, Txn_t txn, enum TxnType type)
Implementation of txn_commit syscall.
int os_txn_start_commit(void)
Start new transaction and commit it immediately.
Definition txn.c:82
Txn_t os_txn_start(void)
Start a transaction.
Definition txn.c:44
Txn_t os_sys_txn_start(Txn_t *domain)
Implementation of txn_start syscall.
void os_txn_done(void)
Finish the transaction commit.
Definition txn.c:91
uint8_t Txn_t
Transaction handle type.
Definition txn.h:40
int os_txn_commit(Txn_t transaction, enum TxnType type)
Try to commit the transaction.
Definition txn.c:55
@ TXN_READONLY
Read-only transaction.
Definition txn.h:35
@ TXN_READWRITE
Read-write transaction.
Definition txn.h:36