IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 12, 2006, 1:17:11 AM (20 years ago)
Author:
eugene
Message:

adding ASSERTs all over

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pcontrol/JobOps.c

    r8424 r10652  
    130130  return (job);
    131131}
    132  
    133 /* the Find functions are not thread-safe: DROP */
    134 # if (0)
    135 Job *FindJobByID (IDtype JobID, int *StackID) {
    136 
    137   Job *job;
    138 
    139   *StackID = PCONTROL_JOB_PENDING;
    140   job = FindJobInStackByID (*StackID, JobID);
    141   if (job != NULL) return (job);
    142 
    143   *StackID = PCONTROL_JOB_BUSY;
    144   job = FindJobInStackByID (*StackID, JobID);
    145   if (job != NULL) return (job);
    146 
    147   *StackID = PCONTROL_JOB_EXIT;
    148   job = FindJobInStackByID (*StackID, JobID);
    149   if (job != NULL) return (job);
    150 
    151   *StackID = PCONTROL_JOB_CRASH;
    152   job = FindJobInStackByID (*StackID, JobID);
    153   if (job != NULL) return (job);
    154 
    155   *StackID = PCONTROL_JOB_DONE;
    156   job = FindJobInStackByID (*StackID, JobID);
    157   if (job != NULL) return (job);
    158 
    159   return (NULL);
    160 }
    161 
    162 /* remove job from position in stack */
    163 Job *FindJobInStackByID (int StackID, int ID) {
    164 
    165   Job *job;
    166   Stack *stack;
    167 
    168   stack = GetJobStack (StackID);
    169   if (stack == NULL) return (NULL);
    170 
    171   job = FindStackByID (stack, ID);
    172   return (job);
    173 }
    174 # endif
    175132
    176133IDtype AddJob (char *hostname, JobMode mode, int timeout, int argc, char **argv) {
Note: See TracChangeset for help on using the changeset viewer.