Example #1
0
File: main.c Project: olivo/BP
void immediate_notify(void) 
{ 

  {
  {
  activate_threads();
  }

  return;
}
}
Example #2
0
void start_simulation(void)
{
   int kernel_st;
   int tmp;
   int tmp___0;

   {
      {
         kernel_st = 0;
         update_channels();
         init_threads();
         fire_delta_events();
         activate_threads();
         reset_delta_events();
      }
      {
         while (1)
         {
while_3_continue: /* CIL Label */;
            {
               kernel_st = 1;
               eval();
            }
            {
               kernel_st = 2;
               update_channels();
            }
            {
               kernel_st = 3;
               fire_delta_events();
               activate_threads();
               reset_delta_events();
            }
            {
               tmp = exists_runnable_thread();
            }
            if (tmp == 0)
            {
               {
                  kernel_st = 4;
                  fire_time_events();
                  activate_threads();
                  reset_time_events();
               }
            }
            else
            {
            }
            {
               tmp___0 = stop_simulation();
            }
            if (tmp___0)
            {
               goto while_3_break;
            }
            else
            {
            }
         }
while_3_break: /* CIL Label */;
      }

      return;
   }
}
//Start the event handling process.
    My_Handler()  {
        ACE_DEBUG((LM_DEBUG, "Got open\n"));
        activate_threads();
        ACE_Reactor::instance()->max_notify_iterations(5);
        return ;
    }