add macros: fc_queue_notify and fc_queue_notify_all

posix_api
YuQing 2022-01-06 20:32:05 +08:00
parent 7fbdb0cece
commit af68bf5d6a
2 changed files with 10 additions and 5 deletions

View File

@ -61,6 +61,11 @@ static inline void fc_queue_terminate_all(
}
}
#define fc_queue_notify(queue) fc_queue_terminate(queue)
#define fc_queue_notify_all(queue, count) \
fc_queue_terminate_all(queue, count)
//notify by the caller
void fc_queue_push_ex(struct fc_queue *queue, void *data, bool *notify);