picotm  0.9.0
Functions
stddef.h File Reference

Transactional wrappers for interfaces of <stddef.h>. More...

#include <picotm/config/picotm-libc-config.h>
#include <picotm/picotm-tm.h>
#include <stddef.h>

Functions

static ptrdiff_t load_ptrdiff_t_tx (const ptrdiff_t *addr)
 
static size_t load_size_t_tx (const size_t *addr)
 
static wchar_t load_wchar_t_tx (const wchar_t *addr)
 
static void privatize_ptrdiff_t_tx (const ptrdiff_t *addr, unsigned long flags)
 
static void privatize_size_t_tx (const size_t *addr, unsigned long flags)
 
static void privatize_wchar_t_tx (const wchar_t *addr, unsigned long flags)
 
static void store_ptrdiff_t_tx (ptrdiff_t *addr, ptrdiff_t value)
 
static void store_size_t_tx (size_t *addr, size_t value)
 
static void store_wchar_t_tx (wchar_t *addr, wchar_t value)
 

Function Documentation

◆ load_ptrdiff_t_tx()

static ptrdiff_t load_ptrdiff_t_tx ( const ptrdiff_t *  addr)
inlinestatic

Loads a value of type ' ptrdiff_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_size_t_tx()

static size_t load_size_t_tx ( const size_t *  addr)
inlinestatic

Loads a value of type ' size_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_wchar_t_tx()

static wchar_t load_wchar_t_tx ( const wchar_t *  addr)
inlinestatic

Loads a value of type ' wchar_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ privatize_ptrdiff_t_tx()

static void privatize_ptrdiff_t_tx ( const ptrdiff_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' ptrdiff_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing.

◆ privatize_size_t_tx()

static void privatize_size_t_tx ( const size_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' size_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing.

◆ privatize_wchar_t_tx()

static void privatize_wchar_t_tx ( const wchar_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' wchar_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing.

◆ store_ptrdiff_t_tx()

static void store_ptrdiff_t_tx ( ptrdiff_t *  addr,
ptrdiff_t  value 
)
inlinestatic

Stores a value of type ' ptrdiff_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_size_t_tx()

static void store_size_t_tx ( size_t *  addr,
size_t  value 
)
inlinestatic

Stores a value of type ' size_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_wchar_t_tx()

static void store_wchar_t_tx ( wchar_t *  addr,
wchar_t  value 
)
inlinestatic

Stores a value of type ' wchar_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.