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_t * | drmaa_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. |
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.
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.
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. |