1. drmaa2_jinfo_free(3)
  2. DRMAA2
  3. drmaa2_jinfo_free(3)

NAME

drmaa2_jinfo_free - drmaa2_jinfo_free, Frees a job info object.

SYNOPSIS

#include "drmaa2.h"

void drmaa2_jinfo_free(drmaa2_jinfo * jinfo);

DESCRIPTION

Frees the memory of a drmaa2_jinfo object and sets it to NULL.

EXAMPLE

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);
}

SEE ALSO

drmaa2_jinfo_create(3), drmaa2_mession_get_all_jobs(3), drmaa2_jsession_get_jobs(3)

AUTHOR

Copyright Univa Corporation 2013

  1. Univa Corporation
  2. October 2013
  3. drmaa2_jinfo_free(3)