targets/Linux/plc_Linux_main.c
changeset 1428 e14003eb4d42
parent 985 cd8dadcef426
child 1457 ff7cfce737ca
equal deleted inserted replaced
1423:4e33f644f7cf 1428:e14003eb4d42
   117     pthread_mutex_lock(&debug_wait_mutex);
   117     pthread_mutex_lock(&debug_wait_mutex);
   118     pthread_mutex_lock(&python_wait_mutex);
   118     pthread_mutex_lock(&python_wait_mutex);
   119 
   119 
   120     timer_create (CLOCK_REALTIME, &sigev, &PLC_timer);
   120     timer_create (CLOCK_REALTIME, &sigev, &PLC_timer);
   121     if(  __init(argc,argv) == 0 ){
   121     if(  __init(argc,argv) == 0 ){
   122         PLC_SetTimer(Ttick,Ttick);
   122         PLC_SetTimer(common_ticktime__,common_ticktime__);
   123 
   123 
   124         /* install signal handler for manual break */
   124         /* install signal handler for manual break */
   125         signal(SIGINT, catch_signal);
   125         signal(SIGINT, catch_signal);
   126     }else{
   126     }else{
   127         return 1;
   127         return 1;