Example #1
0
int remove_job_from_exiting_list(

  job *pjob)

  {
  job_exiting_retry_info *jeri = (job_exiting_retry_info*)get_remove_from_hash_map(exiting_jobs_info, pjob->ji_qs.ji_jobid);

  if (jeri != NULL)
    {
    free(jeri);
    }

  return(PBSE_NONE);
  } /* END remove_job_from_exiting_list() */
Example #2
0
int remove_from_exiting_list_by_jobid(

  const char *jobid)

  {
  pthread_mutex_lock(exiting_jobs_info->hm_mutex);
  
  job_exiting_retry_info *jeri = (job_exiting_retry_info*)get_remove_from_hash_map(exiting_jobs_info, jobid, true);

  if (jeri != NULL)
    free(jeri);
  
  pthread_mutex_unlock(exiting_jobs_info->hm_mutex);

  return(PBSE_NONE);
  } /* END remove_from_exiting_list_by_jobid() */