Skip to content

Commit

Permalink
Add note to H5F_clear_stack() to dissuade use
Browse files Browse the repository at this point in the history
Signed-off-by: Quincey Koziol <[email protected]>
  • Loading branch information
qkoziol committed Sep 24, 2024
1 parent 64fa1dc commit ca49f9e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/H5Eint.c
Original file line number Diff line number Diff line change
Expand Up @@ -1673,6 +1673,15 @@ H5E__clear_entries(H5E_stack_t *estack, size_t nentries)
*
* Purpose: Clear the default error stack
*
* Note: This routine should _not_ be used inside general library
* code in general. It creates complex locking issues for
* threadsafe code. Generally, using a 'try' parameter or
* an 'exists' parameter should be used if an operation is
* being used to probe for information. Remember: failing
* to locate a record is not an error for a data structure,
* although it could be an error for the user of the data
* structure.
*
* Return: SUCCEED/FAIL
*
*-------------------------------------------------------------------------
Expand Down

0 comments on commit ca49f9e

Please sign in to comment.