Transactional wrappers for interfaces of <pthread.h>.
More...
#include <picotm/compiler.h>
#include <picotm/config/picotm-libpthread-config.h>
#include <picotm/picotm-tm.h>
#include <pthread.h>
◆ load_pthread_t_tx()
static pthread_t load_pthread_t_tx |
( |
const pthread_t * |
addr | ) |
|
|
inlinestatic |
Loads a value of type ' pthread_t ' with transactional semantics.
- Parameters
-
- Returns
- The transaction-local value loaded from address 'addr'.
◆ privatize_pthread_t_tx()
static void privatize_pthread_t_tx |
( |
const pthread_t * |
addr, |
|
|
unsigned long |
flags |
|
) |
| |
|
inlinestatic |
Privatizes a value of type ' pthread_t '.
- Parameters
-
addr | The address to privatize.
|
flags | Privatizes for loading and/or storing. Not setting flags discards the buffer. |
◆ pthread_equal_tx()
◆ pthread_self_tx()
◆ store_pthread_t_tx()
static void store_pthread_t_tx |
( |
pthread_t * |
addr, |
|
|
pthread_t |
value |
|
) |
| |
|
inlinestatic |
Stores a value of type ' pthread_t ' with transactional semantics.
- Parameters
-
addr | The destination address. |
value | The value to store at 'addr'. |