diff --git a/include/nuttx/notifier.h b/include/nuttx/notifier.h index 84fe58da70..52955551ae 100644 --- a/include/nuttx/notifier.h +++ b/include/nuttx/notifier.h @@ -51,6 +51,14 @@ #define BLOCKING_NOTIFIER_HEAD(name) \ struct blocking_notifier_head name = BLOCKING_NOTIFIER_INIT(name) +#define BLOCKING_INIT_NOTIFIER_HEAD(name) \ + do \ + { \ + nxmutex_init(&(name)->mutex); \ + (name)->head = NULL; \ + } \ + while (0) + /**************************************************************************** * Public Type Definitions ****************************************************************************/