orcm/mca/notifier/notifier_event_calls.h
/*
 * Do not use this function directly: use ORCM_NOTIFIER_DEFINE_EVENT() instead
 */
Do not use this function directly: use ORCM_NOTIFIER_DEFINE_EVENT() instead
Do not use this function directly : use ORCM_NOTIFIER_DEFINE_EVENT () instead
static inline orcm_notifier_event_t *notifier_alloc_event(int ev_id,
                                                          const char *msg)
{
    orcm_notifier_event_t *ev;
    ev = OBJ_NEW(orcm_notifier_event_t);
    if (NULL == ev) {
        return NULL;
    }
    asprintf(&ev->ev_msg, msg);
    if (NULL == ev->ev_msg) {
        OBJ_RELEASE(ev);
        return NULL;
    }
    ev->ev_id = ev_id;
    notifier_event_store(ev);
    return ev;
}
static inline orcm_notifier_event_t * notifier_alloc_event ( int ev_id , const char * msg ) { orcm_notifier_event_t * ev ; ev = OBJ_NEW ( orcm_notifier_event_t ) ; if ( NULL == ev ) { return NULL ; } asprintf ( & ev -> ev_msg , msg ) ; if ( NULL == ev -> ev_msg ) { OBJ_RELEASE ( ev ) ; return NULL ; } ev -> ev_id = ev_id ; notifier_event_store ( ev ) ; return ev ; }
Do not use this function directly: use ORCM_NOTIFIER_DEFINE_EVENT() instead
Do not use this function directly : use ORCM_NOTIFIER_DEFINE_EVENT () instead
/*
     * Store the allocated event into a list to be able to manage the
     * unconditional event tracing and freeing during finalize.
     */