diff options
Diffstat (limited to '')
-rw-r--r-- | src/notify.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/notify.h b/src/notify.h index e727a0a34..b9fd6e041 100644 --- a/src/notify.h +++ b/src/notify.h @@ -27,6 +27,11 @@ typedef struct notify { int pending; } Notify; +#define NOTIFY_INITIALIZER { \ + .mutex = PTHREAD_MUTEX_INITIALIZER, \ + .cond = PTHREAD_COND_INITIALIZER, \ +} + void notify_init(struct notify *notify); void notify_deinit(struct notify *notify); |