framework/src/fwk_multi_thread.c
static bool is_thread_wakeup_event(struct __fwk_thread_ctx *thread_ctx,
                                   struct fwk_event *event)
{
    if (!thread_ctx->waiting_event_processing_completion) {
        return false;
    }

    if (!event->is_response) {
        return false;
    }

    return thread_ctx->response_event->cookie == event->cookie;
}
/*
 * Check if an event is the wake-up event waited for by a thread.
 *
 * \param thread_ctx Pointer to the context of the waiting thread.
 * \param event Pointer to the event to be checked.
 *
 * \pre \p thread_ctx must not be NULL
 * \pre \p event must not be NULL
 *
 * \retval True The event is the wake-up event waited for by the thread.
 * \retval False The event is not the wake-up event waited for by the thread.
 */
Check if an event is the wake-up event waited for by a thread.
\param thread_ctx Pointer to the context of the waiting thread.
\param event Pointer to the event to be checked.

\pre \p thread_ctx must not be NULL
\pre \p event must not be NULL

\retval True The event is the wake-up event waited for by the thread.
\retval False The event is not the wake-up event waited for by the thread.
Check if an event is the wake - up event waited for by a thread . \ param thread_ctx Pointer to the context of the waiting thread . \ param event Pointer to the event to be checked . \ pre \ p thread_ctx must not be NULL \ pre \ p event must not be NULL \ retval True The event is the wake - up event waited for by the thread . \ retval False The event is not the wake - up event waited for by the thread .
static bool is_thread_wakeup_event(struct __fwk_thread_ctx *thread_ctx,
                                   struct fwk_event *event)
{
    if (!thread_ctx->waiting_event_processing_completion) {
        return false;
    }
    if (!event->is_response) {
        return false;
    }
    return thread_ctx->response_event->cookie == event->cookie;
}
static bool is_thread_wakeup_event ( struct __fwk_thread_ctx * thread_ctx , struct fwk_event * event ) { if ( ! thread_ctx -> waiting_event_processing_completion ) { return false ; } if ( ! event -> is_response ) { return false ; } return thread_ctx -> response_event -> cookie == event -> cookie ; }
Check if an event is the wake-up event waited for by a thread.
Check if an event is the wake - up event waited for by a thread .