Changeset 32632 for trunk/Ohana/src/opihi/include/pcontrol.h
- Timestamp:
- Nov 8, 2011, 2:54:20 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/include/pcontrol.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/include/pcontrol.h
r29540 r32632 119 119 int exit_status; 120 120 int Reset; 121 int priority; 121 122 JobMode mode; 122 123 JobStat state; … … 152 153 } Host; 153 154 155 # if (USE_LLIST) 156 typedef struct StackItem { 157 StackItem *next; 158 StackItem *prev; 159 void *object; 160 char *name; 161 int id; 162 } StackItem; 163 164 /* the Jobs and Hosts are managed in a set of Stacks which define their state */ 165 typedef struct { 166 StackItem *head; 167 StackItem *tail; // use this? 168 int Nobject; 169 # ifdef THREADED 170 pthread_mutex_t mutex; 171 # endif 172 } Stack; 173 174 # else 175 154 176 /* the Jobs and Hosts are managed in a set of Stacks which define their state */ 155 177 typedef struct { … … 163 185 # endif 164 186 } Stack; 187 # endif 165 188 166 189 /* XXX if this is hard-wired, we can't change shell name in StartHost */ … … 291 314 Job *PullJobByID (IDtype JobID, int *StackID); 292 315 Job *PullJobFromStackByID (int StackID, int ID); 293 IDtype AddJob (char *hostname, JobMode mode, int timeout, int argc, char **argv, int Nxhosts, char **xhosts);316 IDtype AddJob (char *hostname, JobMode mode, int timeout, int priority, int argc, char **argv, int Nxhosts, char **xhosts); 294 317 void DelJob (Job *job); 295 318 Host *UnlinkJobAndHost (Job *job);
Note:
See TracChangeset
for help on using the changeset viewer.
