errlogRemoveListeners() handle self-removal

Handle errlogRemoveListeners() during a callback.
This commit is contained in:
Michael Davidsaver committed 2022-12-20 20:12:04 -08:00
1 parent 7448a8bfa9
commit 49fddaa13e
2 files changed
+26 -4

No files matched your search

+3
View File
@@ -178,6 +178,9 @@ LIBCOM_API void errlogAddListener(errlogListener listener, void *pPrivate);
*
* \param listener Function pointer of type ::errlogListener
* \param pPrivate This will be passed as the first argument of listener()
*
* \since UNRELEASED Safe to call from a listener callback.
* \until UNRELEASED Self-removal from a listener callback caused corruption.
*/
LIBCOM_API int errlogRemoveListeners(errlogListener listener,
void *pPrivate);