IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 27, 2011, 9:59:21 AM (15 years ago)
Author:
eugene
Message:

adding linked list varient for pcontrol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110906/Ohana/src/opihi/include/pcontrol.h

    r29540 r32568  
    152152} Host;
    153153
     154# if (USE_LLIST)
     155typedef struct StackItem {
     156    StackItem *next;
     157    StackItem *prev;
     158    void *object;
     159    char *name;
     160    int   id;
     161} StackItem;
     162
     163/* the Jobs and Hosts are managed in a set of Stacks which define their state */
     164typedef struct {
     165    StackItem *head;
     166    StackItem *tail; // use this?
     167    int    Nobject;
     168# ifdef THREADED   
     169  pthread_mutex_t mutex;
     170# endif
     171} Stack;
     172
     173# else
     174
    154175/* the Jobs and Hosts are managed in a set of Stacks which define their state */
    155176typedef struct {
     
    163184# endif
    164185} Stack;
     186# endif
    165187
    166188/* XXX if this is hard-wired, we can't change shell name in StartHost */
Note: See TracChangeset for help on using the changeset viewer.