#include <pthread.h>
#include <core/tx.h>
#include <core/config.h>
#include <core/txdesc.h>
#include <misc/debug.h>
#include <misc/errno.h>
#include <xcalls/xcalls.h>
Go to the source code of this file.
Classes | |
| struct | x_commit_args_s |
Typedefs | |
| typedef x_commit_args_s | x_commit_args_t |
Functions | |
| int XCALL_DEF() | x_pthread_mutex_unlock (pthread_mutex_t *mutex, int *result) |
| Unlocks a mutex. | |
Definition in file x_pthread_mutex_unlock.c.
| int XCALL_DEF() x_pthread_mutex_unlock | ( | pthread_mutex_t * | mutex, | |
| int * | result | |||
| ) |
Unlocks a mutex.
It safely unlocks a mutex by releasing the lock when the transaction commits.
Execution : deferred
Asynchronous failures : commit
| [in] | mutex | The mutex to unlock. |
| [out] | result | Where to store any asynchronous failures. |
Definition at line 53 of file x_pthread_mutex_unlock.c.
References x_commit_args_s::mutex, txc_buffer_linear_malloc(), TXC_INTERNALERROR, txc_tx_get_txd(), txc_tx_get_xactstate(), txc_tx_register_commit_action(), and TXC_TX_REGULAR_COMMIT_ACTION_ORDER.
1.4.7