/** * Restores the signal mask to what it was when `blockSigs()` was called and * unblocks the product-index map. * * @pre {`lockMapAndBlockSigs` was previously called} * @retval 0 Success. * @retval LDM7_SYSTEM System error. `log_add()` called. */ static inline Ldm7Status restoreSignalsAndUnlockMap(void) { restoreSigs(); return unlockMap(); }
/** * Clears the accumulated log-messages of the current thread. */ void log_clear() { sigset_t sigset; blockSigs(&sigset); List* list = getList(); if (NULL != list) list->last = NULL; restoreSigs(&sigset); }