Main Page | Modules | Data Structures | File List | Data Fields | Globals

Remembering submitted job in session.


Data Structures

struct  drmaa_job_s
 Job data stored for each submitted job. More...
struct  drmaa_job_iter_s
 Iterates over submitted jobs set. More...

Functions

void drmaa_get_job_list_iter (drmaa_session_t *session, drmaa_job_iter_t *iter)
 Returns iterator to jobs held in DRMAA session.
drmaa_job_tdrmaa_get_next_job (drmaa_job_iter_t *iter)
 Returns next job identifier from set or NULL if set finished.
void drmaa_add_job (drmaa_session_t *c, drmaa_job_t *job)
 Adds job identifier to session.
bool drmaa_find_job (drmaa_session_t *c, const char *jobid, drmaa_job_t *found, unsigned flags)
 Checks if job with given identifier exist in hash table and optionally removes it.


Function Documentation

void drmaa_get_job_list_iter drmaa_session_t session,
drmaa_job_iter_t iter
 

Returns iterator to jobs held in DRMAA session.

Caller thread should have drmaa_session_s::jobs_mutex acquired iterator remains valid until job list is modified (or lock is released).

void drmaa_add_job drmaa_session_t c,
drmaa_job_t job
 

Adds job identifier to session.

Parameters:
c DRMAA session.
job Malloced drmaa_job_t structure with filled jobid field (also malloced).

bool drmaa_find_job drmaa_session_t c,
const char *  jobid,
drmaa_job_t found,
unsigned  flags
 

Checks if job with given identifier exist in hash table and optionally removes it.

Parameters:
c Opened DRMAA session.
jobid Job identifier.
found If not NULL and job was found job session data will be stored here.
flags Information to store into session. If DRMAA_JOB_DISPOSE bit is set session data will be removed.
See also:
job_flag_t


Generated on Mon Sep 22 18:07:40 2008 for torque by  doxygen 1.3.9.1