Functions
locale.h File Reference

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

#include "picotm/config/picotm-libc-config.h"
#include "picotm/compiler.h"
#include "picotm/picotm-tm.h"
#include <locale.h>

Functions

PICOTM_NOTHROW locale_t duplocale_tx (locale_t locobj)
 
PICOTM_NOTHROW void freelocale_tx (locale_t locobj)
 
static locale_t load_locale_t_tx (const locale_t *addr)
 
static struct lconv load_struct_lconv_tx (const struct lconv *addr)
 
PICOTM_NOTHROW struct lconv * localeconv_tx (void)
 
PICOTM_NOTHROW locale_t newlocale_tx (int category_mask, const char *locale, locale_t base)
 
static void privatize_locale_t_tx (const locale_t *addr, unsigned long flags)
 
static void privatize_struct_lconv_tx (const struct lconv *addr, unsigned long flags)
 
PICOTM_NOTHROW char * setlocale_tx (int category, const char *locale)
 
static void store_locale_t_tx (locale_t *addr, locale_t value)
 
static void store_struct_lconv_tx (struct lconv *addr, struct lconv value)
 
PICOTM_NOTHROW locale_t uselocale_tx (locale_t newloc)
 

Function Documentation

◆ privatize_locale_t_tx()

static void privatize_locale_t_tx ( const locale_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' locale_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_struct_lconv_tx()

static void privatize_struct_lconv_tx ( const struct lconv *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' struct lconv '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.