IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 18, 2006, 1:44:51 PM (20 years ago)
Author:
eugene
Message:

successful implementation of the threaded version of pcontrol

File:
1 edited

Legend:

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

    r8179 r8424  
    1010void program_init (int *argc, char **argv) {
    1111 
     12# ifdef THREADED 
     13  pthread_t clientsThread;
     14# endif
     15
    1216  auto_break = TRUE;
    1317
     
    1822  gprintInit ();
    1923
     24  InitJobStacks ();
     25  InitHostStacks ();
     26
    2027  rl_readline_name = opihi_name;
    2128  rl_attempted_completion_function = command_completer;
     29# ifdef THREADED
     30  pthread_create (&clientsThread, NULL, &CheckSystem_Threaded, NULL);
     31  rl_event_hook = NULL;
     32  rl_set_keyboard_input_timeout (1000);
     33# else
    2234  rl_event_hook = CheckSystem;
    2335  rl_set_keyboard_input_timeout (1000);
     36# endif 
    2437
    2538  set_str_variable ("HISTORY", opihi_history);
Note: See TracChangeset for help on using the changeset viewer.