- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/tap_branches/Ohana/src/opihi/include/pcontrol.h
r25872 r27838 98 98 int requested; 99 99 } JobOutput; 100 101 /* A machine has a unique name and may have multiple Hosts (each of which can run a single job) 102 We use this to track aspects of the analysis per machine, to eg, limit the number of jobs 103 desired on a single machine */ 104 typedef struct { 105 char *name; 106 int Nhosts; // how many hosts are selected for this machine (whatever state) 107 int NjobsRealhost; 108 int NjobsWanthost; 109 } Machine; 100 110 101 111 /* data to define a job */ … … 140 150 } Host; 141 151 152 /* the Jobs and Hosts are managed in a set of Stacks which define their state */ 142 153 typedef struct { 143 154 void **object; … … 280 291 void LinkJobAndHost (Job *job, Host *host); 281 292 293 /*** MachineOps.c ***/ 294 void InitMachines (); 295 void FreeMachines (); 296 Machine *FindMachineByName (char *name); 297 Machine *AddMachine (char *name); 298 int DelMachine (char *name); 299 int AddMachineHost (Host *host); 300 int DelMachineHost (Host *host); 301 int AddMachineJob (Host *host, Job *job); 302 int DelMachineJob (Host *host, Job *job); 303 int PrintMachines (); 304 int CheckMachineJobs (Host *host, Job *job); 305 int GetMaxUnwantedHostJobs (void); 306 void SetMaxUnwantedHostJobs (int value); 307 308 float GetMaxConnectTime (void); 309 void SetMaxConnectTime (float value); 310 float GetMaxWantHostWait (void); 311 void SetMaxWantHostWait (float value); 312 282 313 void pcontrol_exit (int n); 283 314
Note:
See TracChangeset
for help on using the changeset viewer.
