IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 19, 2008, 12:28:34 PM (18 years ago)
Author:
eugene
Message:

adding thread options to host and job

File:
1 edited

Legend:

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

    r18113 r19124  
    189189}
    190190
    191 IDtype AddHost (char *hostname) {
     191IDtype AddHost (char *hostname, int max_threads) {
    192192
    193193  Host *host;
     
    195195  ALLOCATE (host, Host, 1);
    196196
    197   host[0].hostname  = strcreate (hostname);
    198   host[0].stdin_fd  = 0;
    199   host[0].stdout_fd = 0;
    200   host[0].stderr_fd = 0;
    201   host[0].HostID    = NextHostID();
    202 
    203   host[0].lasttry.tv_sec = 0;
     197  host[0].hostname    = strcreate (hostname);
     198  host[0].max_threads = max_threads;
     199  host[0].stdin_fd    = 0;
     200  host[0].stdout_fd   = 0;
     201  host[0].stderr_fd   = 0;
     202  host[0].HostID      = NextHostID();
     203
     204  host[0].lasttry.tv_sec  = 0;
    204205  host[0].lasttry.tv_usec = 0;
    205   host[0].nexttry.tv_sec = 0;
     206  host[0].nexttry.tv_sec  = 0;
    206207  host[0].nexttry.tv_usec = 0;
    207208
Note: See TracChangeset for help on using the changeset viewer.