drmaa2_jinfo_free
- drmaa2_jinfo_free, Frees a job info object.
#include "drmaa2.h"
void drmaa2_jinfo_free(drmaa2_jinfo * jinfo);
Frees the memory of a drmaa2_jinfo
object and sets it to NULL.
drmaa2_jinfo filter = drmaa2_jinfo_create();
drmaa2_j_list running_jobs = NULL;
if (filter != NULL) {
filter->jobState = DRMAA2_RUNNING;
running_jobs = drmaa2_msession_get_all_jobs(ms, filter);
/* do something with the list of running jobs ... */
drmaa2_list_free(&running_jobs);
drmaa2_jinfo_free(&filter);
}
drmaa2_jinfo_create(3), drmaa2_mession_get_all_jobs(3), drmaa2_jsession_get_jobs(3)
Copyright Univa Corporation 2013