Exemplo n.º 1
0
int
top2 (int q)
{
  do_stuff (200);
  do_other_stuff ();
  return bah (16, q);
}
Exemplo n.º 2
0
void *thread_mmain(void * arg)
{
   int tid =  * ((int *) arg);
   threadIDs[tid] = pthread_self();

   while(1==1)
   {
       do_other_stuff();
       man_enter();
   }
}
Exemplo n.º 3
0
void *thread_fmain(void * arg)
{
   int tid =  *((int *) arg);
   threadIDs[tid] = pthread_self();

   while(1==1)
   {
       do_other_stuff();
       woman_enter();
       use_rr();
       woman_leave();
   }
}
Exemplo n.º 4
0
void other_stuff()
{
    high_level_func();
    do_other_stuff();
}
Exemplo n.º 5
0
int main()
{
    std::future<int> the_answer = std::async(find_the_answer_to_ltuae);
    do_other_stuff();
    std::cout << "The answer is " << the_answer.get() << std::endl;
}
Exemplo n.º 6
0
int
top1 (int q)
{
  do_other_stuff ();
  return bah (0, q);
}