Covers the POSIX Threads interface.
More...
There's currently only minimal support for POSIX threads. Most of the POSIX threads interface's functionality requires irrevocability and is probably not useful for transactional code.
There are currently two supported interface. Call pthread_self_tx() to get a reference to the thread's structure, and use pthread_equal_tx() to compare thread structure with each other.
◆ 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'. |