| Shared Memory Interface - Mutexes | |
| Files | |
| tnt_shmem_mutex.h | |
| Functions | |
| tnt_shmem_mutex_init | Initializes the mutex specified by the parameter mutex. |
| tnt_shmem_mutex_destroy | Destroys the mutex specified by the parameter mutex. |
| tnt_shmem_mutex_lock | Locks a mutex specified by the parameter mutex. |
| tnt_shmem_mutex_unlock | Unlocks a mutex specified by the parameter mutex. |
tnt_ret_t tnt_shmem_mutex_init( tnt_shmem_mutex_t * mutex )
Initializes the mutex specified by the parameter mutex.
| mutex | the address of the mutex to initialize. |
| 0 | on success. |
| < 0 | on failure. |
tnt_shmem_mutex_destroy, tnt_shmem_mutex_lock, tnt_shmem_mutex_unlock
tnt_ret_t tnt_shmem_mutex_destroy( tnt_shmem_mutex_t * mutex )
Destroys the mutex specified by the parameter mutex.
| mutex | the address of the mutex to destroy. |
| 0 | on success. |
| < 0 | on failure. |
tnt_shmem_mutex_init, tnt_shmem_mutex_lock, tnt_shmem_mutex_unlock
tnt_ret_t tnt_shmem_mutex_lock( tnt_shmem_mutex_t * mutex )
Locks a mutex specified by the parameter mutex.
| mutex | the address of the mutex to lock. |
| 0 | on success. |
| < 0 | on failure. |
tnt_shmem_mutex_init, tnt_shmem_mutex_destroy, tnt_shmem_mutex_unlock
tnt_ret_t tnt_shmem_mutex_unlock( tnt_shmem_mutex_t * mutex )
Unlocks a mutex specified by the parameter mutex.
| mutex | the address of the mutex to unlock. |
| 0 | on success. |
| < 0 | on failure. |
tnt_shmem_mutex_init, tnt_shmem_mutex_destroy tnt_shmem_mutex_lock
Initializes the mutex specified by the parameter mutex.
tnt_ret_t tnt_shmem_mutex_init( tnt_shmem_mutex_t * mutex )
Destroys the mutex specified by the parameter mutex.
tnt_ret_t tnt_shmem_mutex_destroy( tnt_shmem_mutex_t * mutex )
Locks a mutex specified by the parameter mutex.
tnt_ret_t tnt_shmem_mutex_lock( tnt_shmem_mutex_t * mutex )
Unlocks a mutex specified by the parameter mutex.
tnt_ret_t tnt_shmem_mutex_unlock( tnt_shmem_mutex_t * mutex )