Ejemplo n.º 1
0
static void stop(orte_jobid_t jobid)
{
    opal_list_item_t *item;
    file_tracker_t *ft;

    /* cannot monitor my own job */
    if (jobid == ORTE_PROC_MY_NAME->jobid && ORTE_JOBID_WILDCARD != jobid) {
        return;
    }

    for (item = opal_list_get_first(&jobs);
        ((item != opal_list_get_end(&jobs)) && (NULL != item));
        item = opal_list_get_next(item)) {
        ft = (file_tracker_t*)item;
        if (jobid == ft->jobid || ORTE_JOBID_WILDCARD == jobid) {
            opal_list_remove_item(&jobs, item);
            OBJ_RELEASE(item);
        }
    }

    if (orcm_sensor_file.ev_active) {
        orcm_sensor_file.ev_active = false;
        /* stop the thread without releasing the event base */
        opal_progress_thread_pause("file");
    }
    return;
}
Ejemplo n.º 2
0
static void stop(orte_jobid_t jobid)
{
    if (orcm_sensor_udsensors.ev_active) {
        orcm_sensor_udsensors.ev_active = false;
        /* stop the thread without releasing the event base */
        opal_progress_thread_pause("udsensors");
        OBJ_RELEASE(udsensors_sampler);
    }
    return;
}