src/xcalls/x_pthread_mutex_unlock.c File Reference

x_pthread_mutex_unlock implementation. More...

#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.


Detailed Description

x_pthread_mutex_unlock implementation.

Definition in file x_pthread_mutex_unlock.c.


Function Documentation

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

Parameters:
[in] mutex The mutex to unlock.
[out] result Where to store any asynchronous failures.
Returns:
The new file descriptor on success, or -1 if a synchronous failure occurred (in which case, errno is set appropriately).

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.


Generated on Wed Dec 9 20:32:41 2009 for xCalls by  doxygen 1.4.7