mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-23 16:20:57 +08:00
Document usage for H5TSmutex_release/acquire() (#4836)
This commit is contained in:
parent
405d1b91d9
commit
ca217e2c71
19
src/H5TS.c
19
src/H5TS.c
@ -67,10 +67,12 @@ H5TS_api_info_t H5TS_api_info_p;
|
||||
/*--------------------------------------------------------------------------
|
||||
* Function: H5TSmutex_acquire
|
||||
*
|
||||
* Purpose: Attempts to acquire the HDF5 library global lock
|
||||
* Purpose: Attempts to acquire the HDF5 library global lock. Should be preceded by a call to
|
||||
* H5TSmutex_release().
|
||||
*
|
||||
* Note: On success, the 'acquired' flag indicates if the HDF5 library
|
||||
* global lock was acquired.
|
||||
* Parameters:
|
||||
* lock_count; IN: The lock count that was held on the mutex before its release
|
||||
* acquired; OUT: Whether the HDF5 library global lock was acquired
|
||||
*
|
||||
* Return: Non-negative on success / Negative on failure
|
||||
*
|
||||
@ -118,10 +120,17 @@ H5TSmutex_get_attempt_count(unsigned *count)
|
||||
/*--------------------------------------------------------------------------
|
||||
* Function: H5TSmutex_release
|
||||
*
|
||||
* Purpose: Releases the HDF5 library global lock
|
||||
* Purpose: Releases the HDF5 library global lock. Should be followed by a call to H5TSmutex_acquire().
|
||||
*
|
||||
* This should be used by applications to temporarily release the lock in order to either perform
|
||||
* multi-threaded work of their own or yield control to another thread using HDF5. The value
|
||||
* returned in lock_count should be provided to H5TSmutex_acquire() in order to resume a
|
||||
* consistent library state.
|
||||
*
|
||||
* Parameters:
|
||||
* lock_count; OUT: The current lock count for the calling thread.
|
||||
*
|
||||
* Return: Non-negative on success / Negative on failure
|
||||
*
|
||||
*--------------------------------------------------------------------------
|
||||
*/
|
||||
herr_t
|
||||
|
Loading…
Reference in New Issue
Block a user